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. Phone.java phone location management

Hello,

As I understand it, the Phone.java interface is not available to
application developers. This being the case (please confirm), how can
application developers access detailed phone related data such as
neighboring CID (refer to the Phone.java code for additional
information)?

Retrieving this kind of information depends on the instantiation of
Phone (e.g. via makeDefaultPhone, or getDefaultPhones.
makeDefaultPhone cannot be used without special permission.

It looks to me like somehow, for reasons I do not quite understand, it
is particularly difficult to access and manage phone location
information (e.g. have direct access to the Phone.java interface).

Why is that? It cannot be a matter of security as testing of a
function and development of an application does not automatically
translate into publishing and approval of that application.

I would appreciate anyone's feedback and help on this.

Thanks.

Alex Donnini

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

2. New android phones: compatibility of apps + Phone Dev

Well, I'm (a noob) wondering, how will apps from the market work on
other android devices that come out this year. Are current apps gonna
work on them?

I'm also wondering will a developer's versions of these phones will be
available?

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

3. Does iTunes/3GPP metadata supported?

4. About make installer_img command error for x86

5. Google Voice integration?

6. About RadioInfo.java

7. SDK 1.5 and multiple projects in an application