Android App Not Running On Any Device
I'm having trouble running ANY app on both an emulator and a device. Just running the simple 'Hello World' app is not working. The app gets installed on the emulator but never exec
Solution 1:
You've to change your main activity's <intent-filter>
tag filter in AndroidManifest.xml
file.
<applicationandroid:name="......"android:icon="@drawable/app_icon"android:label="@string/app_name" ><activityandroid:name=".yourActivity"><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity>
Means, you've to change your activity's <action>
and <category>
Edit
Just change like below in your manifest file. It will launch your application.
<activityandroid:name=".MainActivity"android:label="@string/title_activity_main" ><meta-dataandroid:name="android.support.PARENT_ACTIVITY"android:value="parent" /><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter></activity>
Post a Comment for "Android App Not Running On Any Device"