On Mar 19, 7:12 pm, Grant Kimm <[email protected]> wrote:
> 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.

Just leave out the <intent-filter> section for that activity. You only
need an intent filter if your activity is going to respond to intents
from other apps, like if you're replacing the standard picture chooser
and want your activity to handle any request to choose a picture.

If you're just using the activity for navigating within your app, you
can omit the intent filter, and start the activity with its class
name:

    Intent intent = new Intent(this, Education.class);
    startActivity(intent);

Jesse
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to