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. Regarding Android init process

Hi All

We are trying to port Android on smdk6400. We already have a linux
kernel 2.6.21 which boots up perfectly on that board. For that we used
the file system of the samsung. When the kernel boots up it has an
init process which will start the services by executing some rc
scripts based on its run level like wise android kernel must have same
kind of init process which will start its services. My doubt is that
whether the android init process will start all the samsung related
services or we have to do any modification in any of the scripts to
support the board related services or stuffs. If its the case whether
we have to merge the rc scripts of these two? or is there any other
mean by which we will have both the board and android related services
running perfectly.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Runescape

Uh... It may sound a little childish, but will the new Java Software
some of you are developing be able to run a game that I like playing
called RuneScape?

Thanks in Advance,
Gurjot (Jot) L.

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

3. The code in android which draw a rectangle surrounding an anchor in Webkit

4. Android-X86 upon ThinkPad Series

5. Exporting a Service

6. finding info in qemu trace

7. Do I need a while loop in GLThread of GLSurfaceView if animation is not needed?