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. AVD Camera

HI All,

I am new to Android development and I am working on an app that will
use the camera to scan barcodes similar to many other apps out there.
Based on what I have read here: 
 http://www.***.com/ 
the AVD does not support any camera input.  So what I did was I used
some of the classes on this page:  
 http://www.***.com/ 
I am streaming my local {*filter*} over http and capturing the frames in
the AVD and displaying them.  This is working fine.  Now that I have
this working I wanted to look into how the  http://www.***.com/ 
could be implemented.  However I think these two implemenations don't
work well together.  zxing uses events such as Camera.PreviewCallback
which I dont have access to using my camera capturing.  Also the
scanning is using the byte[] data passed into the event handler, and
with my implementation I only have access to a bitmap.

How have you guys worked around this limiation?

Thanks,
jgautier

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

2. Android 1.5 Spare parts Battery History does not display any data

Folks,

I do not have G1 Dev phone yet, and i am using the emulator for now.
When you go to Spare Parts -> Battery History, there is nothing that
is displayed.

Question:
1. Why is the data not Battery history data not available?

Thanks in advance.

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

3. Android Maps API & KMZ files

4. the log problem in test_pvauthorengine

5. How to get the root view of current Activity?

6. Miami Area Users Group

7. How to get the root view of current Activity?