HELP! Cannot launch sub activity

by Jennifer » Fri, 23 Apr 2010 08:05:47 GMT

Sponsored Links
 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">
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />

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?




HELP! Cannot launch sub activity

by Kumar Bibek » Fri, 23 Apr 2010 12:43:35 GMT

 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">
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />
<activity android:name=".ContactPicker"
                  android:label="Contact Picker"/>

Thanks and Regards,
Kumar Bibek


Sponsored Links

Other Threads

1. IconPreferenceScreen that extends PreferenceScreen

I would like to have a Preferences activity that has icons like the
system settings has had since Eclair.
It uses a special Preference called IconPreferenceScreen. Link:;a=blob;f=src/com/android/settings/

I can copy that into my project without problem, but I'd like the
behavior of the PreferenceScreen instead of just the Preference Class.
I could like to click on it to show its children Preferences.
I thought it would be a easy to change to make IconPreferenceScreen
extend PreferenceScreen instead of Preference, but PreferenceScreen is

Why on earth would google make PreferenceScreen a final class?
Is there anyway to achieve what I would like to do, short of dividing
up my Preference into several other Preferences that all receive
intents (That's how the system settings works.)

Thanks for the help,
David Shellabarger


2. AppBrain: Programmatic download & install of Market apps


Most of you might know AppBrain already. It has a great feature to
install apps on your phone directly from their web site which works on
nearly all android phones (with version 1.5 Cupcake or later). I'd
like to resemble that kind of web install of Market apps in my own

the "Android Services" permission
( However,
I didn't find much details about this permission yet or what you
actually could do with it. But obviously this seems to do the trick of
installing applications on the phone without requiring any user input
(e.g. manually selecting "download" etc. like when using the "market://
details?..." type of intent).

I wonder how this might work in detail and would greatly appreciate
any hint on this topic.

-- Andr


3. Unable to find instrumentation info for...

4. Cara Connect SGS ke Ma

5. akhirnya froyo utk milestone (unofisial)

6. tanya info harga x10mini / pro

7. Inflate view from XMLPullParser or other external source