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">
            <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

--



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">
            <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



>


Sponsored Links


Other Threads

1. Micro SD Memory for G1 Recommendations

I am trying to determine what Micro SD Card is best for the G1.  I am
confused by the various technology designations ... class 2-6, SD vs
SDHC.  Size vs reliability.  Sweet spot cost-wise.

I would choose the most reliable/fastest over the largest.  I have
searched for this info online, perhaps I just need search word help!

i++



--~--~---------~--~----~------------~-------~--~----~

2. Integrating 3rd party static library

Hello Everyone,

I am linking a 3rd party static library from the executable module. I
have added following extra line in executable Android.mk file.

LOCAL_PREBUILT_LIBS := GPS_Lib.a
include $(BUILD_MULTI_PREBUILT)
LOCAL_STATIC_LIBRARIES := \
                       GPS_Lib


While building the executable module i got following warning and it
didnt build the executable.

LOCAL_BUILT_MODULE and LOCAL_INSTALLED_MODULE must not be defined by
component makefiles.  Stop.

Is there anything else i need to do ?
Where i should put 3rd party static library?

Regards
krish
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. android.telephony

4. Dialog Survival Over Configuration Change

5. What is wrong with this layout

6. Looking for a way to build resolution independent layout xml?

7. citys in india