This line:
<action android:name="android.intent.action.MAIN" />

defines which activity in the application is the 'main' activity - in
other words, which is the activity (or screen) that will load up
first. In an application, there should only be one main activity.

On Nov 17, 5:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Thanks,
> I checked APIDemos and got this line in manifest file:
>
> <category android:name="android.intent.category.SAMPLE_CODE" />
>
> I am thinking abt that but not sure.So thank for the hint.
> Bye.
>
> On Nov 16, 2:47 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > [EMAIL PROTECTED] wrote:
> > > Hi,
> > > I am facing one wiered problem.
> > > I have created 4 intent reciver in my AndroidManifeast.xml file. And I
> > > have created 4 class for that and the code is working perfectly. The
> > > problem is when ever I launch emulator to lauch application, I can see
> > > 4 diffrent acitivities which I have created also along with the main
> > > application.
>
> > You specifically have told Android you want all those in the launcher, via:
>
> >  >             <intent-filter>
> >  >                 <action android:name="android.intent.action.MAIN" />
> >  >                 <category
> >  > android:name="android.intent.category.LAUNCHER" />
> >  >             </intent-filter>
>
> > There should only be one MAIN in general (I think), and if you don't
> > want them all on the launcher, only use the LAUNCHER with the
> > appropriate one(s).
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
>
> > Android Training on the Ranch! -- Mar 16-20, 
> > 2009http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
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