On Sat, Jun 13, 2009 at 2:23 PM, Mark Murphy<[email protected]> wrote: > > Lucius Fox wrote: >> Can someone please help me understanding why in my emulator, i can >> * in my settings-> manage application, see an entry for an application there >> * but i cant' find the icon for launching that in All Application. >> >> Can you please tell me how can I make my application launches on the >> emulator? > > You need one or more activities with the following <intent-filter> in > their manifest: > > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > <category android:name="android.intent.category.LAUNCHER" /> > </intent-filter> >
I am asking this because I am trying to get IM application for 'cupcake' branch emulator. I did a 'make -j4' and then 'make IM' but the IM is not in All app, but i see that in Settings->manage application. Here is the AndroidManifest.xml, It has action.MAIN: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.im" android:sharedUserId="android.uid.im" android:sharedUserLabel="@string/perm_label"> <uses-permission android:name="com.android.providers.im.permission.READ_ONLY" /> <uses-permission android:name="com.android.providers.im.permission.WRITE_ONLY" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.SEND_SMS" /> <uses-permission android:name="android.permission.RECEIVE_SMS" /> <uses-permission android:name="android.permission.READ_CONTACTS" /> <uses-permission android:name="android.permission.READ_PHONE_STATE" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="com.android.im.permission.IM_SERVICE" /> <permission android:name="com.android.im.permission.IM_SERVICE" android:permissionGroup="android.permission-group.MESSAGES" android:protectionLevel="dangerous" android:label="@string/perm_label" android:description="@string/perm_desc" /> <application android:name=".app.ImApp" android:label="@string/im_label" android:icon="@drawable/ic_launcher_im" android:taskAffinity="android.task.im"> <uses-library android:name="com.android.im.plugin" /> <!-- TODO: Remove dependency of application on the test runner (android.test) library. --> <uses-library android:name="android.test.runner" /> <service android:name=".app.FrontDoorPlugin"> <intent-filter> <action android:name="android.im.plugin" /> </intent-filter> </service> <service android:name=".service.RemoteImService" android:process="android.process.im" android:exported="true" android:permission="com.android.im.permission.IM_SERVICE"> <intent-filter> <action android:name="com.android.im.IRemoteImService" /> <action android:name="com.android.im.SERVICE" /> </intent-filter> </service> <activity android:name=".app.ChooseAccountActivity" android:theme="@android:style/Theme.NoDisplay"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".app.ImUrlActivity" > <intent-filter> <action android:name="android.intent.action.SENDTO" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="com.android.im.category.AIM" /> <category android:name="com.android.im.category.MSN" /> <category android:name="com.android.im.category.YAHOO" /> <data android:scheme="im" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.SENDTO" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="imto" android:host="aim"/> <data android:scheme="imto" android:host="yahoo"/> <data android:scheme="imto" android:host="msn"/> </intent-filter> </activity> <activity android:name=".app.AccountActivity"> <intent-filter> <action android:name="android.intent.action.EDIT" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="com.android.im.IMPS_CATEGORY" /> <data android:mimeType="vnd.android.cursor.item/im-accounts" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.INSERT" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="com.android.im.IMPS_CATEGORY" /> <data android:mimeType="vnd.android.cursor.item/im-providers" /> </intent-filter> </activity> <activity android:name=".app.SigningInActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".app.SignoutActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity> <activity android:name=".app.ContactListActivity" android:launchMode="singleTop"> <intent-filter> <action android:name="android.intent.action.VIEW"/> <category android:name="android.intent.category.DEFAULT"/> <category android:name="com.android.im.IMPS_CATEGORY" /> <data android:mimeType="vnd.android.cursor.dir/im-contacts"/> </intent-filter> </activity> <activity android:name=".app.AddContactActivity" android:label="@string/add_contact_title"/> <activity android:name=".app.NewChatActivity" android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="stateUnchanged"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="com.android.im.IMPS_CATEGORY" /> <data android:mimeType="vnd.android.cursor.item/im-chats" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="vnd.android.cursor.item/im-invitations" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.IM_MANAGE_SUBSCRIPTION"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="vnd.android.cursor.item/im-contacts"/> </intent-filter> </activity> <activity android:name=".app.ContactsPickerActivity" android:label="@string/contacts_picker_title"> <intent-filter> <action android:name="android.intent.action.PICK" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="vnd.android.cursor.dir/im-contacts" /> </intent-filter> </activity> <activity android:name=".app.BlockedContactsActivity" android:label="@string/blocked_list_title"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="vnd.android.cursor.dir/im-blockedList" /> </intent-filter> </activity> <activity android:name=".app.ContactPresenceActivity"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="vnd.android.cursor.item/im-contacts" /> </intent-filter> </activity> <activity android:name=".app.PreferenceActivity"> <intent-filter> <action android:name="android.intent.action.VIEW" /> </intent-filter> </activity> <activity android:name=".app.SettingActivity"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="com.android.im.IMPS_CATEGORY" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="vnd.android-dir/im-providerSettings" /> </intent-filter> </activity> <activity android:name=".app.SimpleInputActivity"> <intent-filter> <action android:name="android.intent.action.VIEW" /> </intent-filter> </activity> <receiver android:name=".receiver.ImServiceAutoStarter" android:process="android.process.im"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED"/> </intent-filter> </receiver> </application> </manifest> > If you on Android 1.5, and you already have that intent filter, and you > still do not see your icon, and you may already have an application > installed that shares the same Java package (e.g., > package="com.commonsware.android.foo" in your <manifest> element), try > removing the earlier application and re-installing the new one. You > cannot have two applications installed with the same package. In Android > 1.1 and earlier, the new one would overwrite the old one -- not anymore. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Need Android talent? Ask on HADO! http://wiki.andmob.org/hado > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

