when I tried to run my application its show the error below
Error running Dashboard: The activity must be exported or contain an intent-filter
just add intent-filter Tag inside your activity
for example ::
<activity
android:name=".activityName">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Double check your manifest, your first activity should have tag
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
inside of activity tag.
If that doesn't work, look for target build, which located in the left of run button (green-colored play button), it should be targeting "app" folder, not a particular activity. if it doesn't targeting "app", just click it and choose "app" from drop down list.
Hope it helps!
Sometimes if you change the starting activity you have to click edit in the run dropdown play button and in app change the Launch Options Activity to the one you have set the LAUNCHER intent filter in the manifest.
In manifest.xml, select activity which u wanna start e set this informations:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Check your manifest,Open the file with .xml extension and then all your activities are listed your first activity should have this code enclosed in its tags
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
or there is another way u can choose from configuration which is drop down list on the left side of run button choose from App from it Hope it will help!!
it's because you are trying to launch your app from an activity that is not launcher activity. try run it from launcher activity or change your current activity category to launcher in android Manifest.