<activity android:name=".mainApp" android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".education" android:label="@string/education" 
/> 


--- 09年3月20日,周五, Grant Kimm <grantk...@hotmail.com> 写道:
发件人: Grant Kimm <grantk...@hotmail.com>
主题: [android-developers] Re: Extra Icons in Menu
收件人: android-developers@googlegroups.com
日期: 2009,320,周五,10:12上午




#yiv2114977463 .hmmessage P
{
margin:0px;padding:0px;}
#yiv2114977463 {
font-size:10pt;font-family:Verdana;}


Hi,

Thanks for the reply.

Here is my code sample. 

      <activity android:name=".mainApp" android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".education" android:label="@string/education"> 
            <intent-filter>
                <!-- What goes here instead of MAIN or LAUNCHER? -->
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>


What do I need for the intent information for activities that are within the 
main app, but not the root activity? Education is an activity that a user can 
launch after getting into the mainApp activity.


Thanks.



> Date: Thu, 19 Mar 2009 19:08:13 -0700
> Subject: [android-developers] Re: Extra Icons in Menu
> From: jmcg...@gmail.com
> To: android-developers@googlegroups.com
> 
> 
> On Mar 19, 4:44 am, Grant Kimm <grantk...@hotmail.com> wrote:
> > Hi,
> >
> > When I run my app, I see about 8 or 9 icons in the main phone menu. One
> > is to run the app, and the others actually run activities within the
> > app.
> >
> > I want there to only be one icon for users. Any ideas as to why this is 
> > happening?
> >
> > My code is structured similar to examples from the book "Android - A 
> > Programmers Guide" by JF DiMarzio.
> >
> > How do I hide the other icons so users have to start at the main menu 
> > screen?
> 
> Check your manifest for these lines:
> 
>   <intent-filter>
>     <action android:name="android.intent.action.MAIN" />
>     <category android:name="android.intent.category.LAUNCHER" />
>   </intent-filter>
> 
> Make sure you *only* have those under your main activity, the one you
> want to appear in the launcher.
> 
> Jesse
> 







      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to