I'm working on an Android application and haven't had a problem running it on my HTC Incredible 2. However, the icon will not show up in my programs list. I can get to it only from the Recent Apps and the list of Installed Apps (it shows up under Downloaded). Any suggestions? Here's my AndroidManifest.xml
:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxxxx.xxxxx" android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:debuggable="true">
<activity android:name=".XxxXxxDroidActivity"
android:label="@string/app_name" android:theme="@android:style/Theme.Black.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MEDIA_MOUNTED" />
<data android:scheme="file" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".FileManagerActivity"
android:theme="@android:style/Theme.Black.NoTitleBar"></activity>
</application>
Any suggestions to fix this problem always involve the presence of the <intent-filter>
lines, but Eclipse automatically added them and they make no difference for me one way or the other.
In your manifest, for the class XxxXxxDroidActivity
add another intent-filter
:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>