android - Change application's starting activity -


i have created meat , guts of application want add different activity starting point (sort of log-in screen).

couple questions:

  • 1 have decent handle on how switch between activities (based on article: http://www.linux-mag.com/id/7498) i'm not sure how go creating new 1 (with eclipse).

  • 2 once have new activity created, how can set default activity of application? presume change name of classes...but there more elegant way handle (maybe within androidmanifest.xml)?

yes, use androidmanifest.xml file. can have more 1 launcher activity specified in application manifest. make activity seen on launcher add these attributes activity in manifest:

<intent-filter>     <action android:name="android.intent.action.main" />     <category android:name="android.intent.category.launcher" /> </intent-filter> 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -