Thursday, April 22, 2010

[android-developers] Re: HELP! Cannot launch sub activity

Then you should have another activity with the same intent filter.
Remove the intent filter from this Activity.

And from the other activity, on button click event you need to start
this Activity.

<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ContactPicker"
android:label="Contact Picker"/>

Thanks and Regards,
Kumar Bibek

On Apr 22, 8:39 pm, Jennifer <jujubee8...@gmail.com> wrote:
> Hi y'all,
>
> I'm working on making an application that requires me to populate a
> contact list.
>
> My code works when the intent-filter for the activity is set to:
>
> <activity android:name=".ContactPicker"
>                   android:label="Contact Picker">
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" />
>                 <category
> android:name="android.intent.category.LAUNCHER" />
>             </intent-filter>
> </activity>
>
> However, I do not want this activity to start right at the launch of
> the emulator. My program has a menu page where once you click on a
> button, this contact picker (basically a contact list) will show up.
> What are the manifest attributes that I need for this to happen?
>
> Thanks!
>
> Jennifer
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate