You should also move <action
android:name="android.intent.action.MAIN" />
to the intent-filter of SpinnerTest.

Check out how intent-filters work at this websites:
http://developer.android.com/guide/topics/fundamentals.html#ifilters
http://developer.android.com/guide/topics/intents/intents-filters.html

On Jul 13, 6:11 am, Nerj <[email protected]> wrote:
> Thanks for ur reply,
> I tried ur suggestion, even through I didn't able to launch the
> specified activity, see my code for manifest file (.xml) below,
>
> <application android:icon="@drawable/icon" android:label="@string/
> app_name">
>         <activity android:name="SpinnerTest"
>                   android:label="Spinner">
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" /
>
>                  <category
> android:name="android.intent.category.DEFAULT" />
>                 <category
> android:name="android.intent.category.LAUNCHER" />
>             </intent-filter>
>         </activity>
>          <activity android:name="SampleDemo"
>                   android:label="@string/app_name">
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" />
>                  <category
> android:name="android.intent.category.SAMPLE_CODE"/>
>             </intent-filter>
>         </activity>
>     </application>
>
> I want to launch, SpinnerTest activity as the First.  But I saw the
> SampleDemo activity is my main one.
>
> Pls, suggest me...
>
> On Jul 11, 5:22 pm, Mark Murphy <[email protected]> wrote:
>
> > Nerj wrote:
> > > Pls, Suggest me....
> > > Its urgent, I can't get the solution...
>
> > Only put the LAUNCHER intent filter in the <activity> entries in your
> > manifest that you want to have appear as icons in the Launcher.
>
> > > On Jul 10, 4:10 pm, Nerj <[email protected]> wrote:
> > >> Hi!
> > >> I am begginer of Android Development.
> > >> I can create an activity with different views, and can run them
> > >> successfully.
> > >> The problem is that,
> > >>          >>   If  I have several activities in the android project, it
> > >> takes only one to launch.
> > >> Can u pls, tell me how to set an activity as Main one which is to be
> > >> launch at first time when the app is open?
>
> > >> Pls, suggest me......
>
> > >> Thanks in advance...
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > Warescription: Three Android Books, Plus Updates, $35/Year
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to