java - Android - Default Activity Cannot Be Found -
i making basic custom launcher following given instructions on site... instructions app can launched, when try, error saying default activity not found.
i looked existing questions on stack overflow none of them helped me. manifest this...
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="omg_its_azzler.launcher"> <activty> <application android:allowbackup="true" android:name="omg_its_azzler.launcher.homeactivity" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundicon="@mipmap/ic_launcher_round" android:supportsrtl="true" android:theme="@android:style/theme.wallpaper.notitlebar.fullscreen" android:launchmode="singletask" android:statenotneeded="true"/> <intent-filter> <action android:name="android.intent.action.main"/> <category android:name="android.intent.category.home"/> <category android:name="android.intent.category.default"/> </intent-filter> </activty> <activity> android:name="omg_its_azzler.launcher.appsactivity" android:theme="@android:style/theme.notitlebar.fullscreen"> </activity> </manifest>
you got syntax of manifest wrong. application tag tag keep activities inside of.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="omg_its_azzler.launcher"> <application android:allowbackup="true" android:name="omg_its_azzler.launcher.homeactivity" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundicon="@mipmap/ic_launcher_round" android:supportsrtl="true" android:theme="@android:style/theme.wallpaper.notitlebar.fullscreen" android:launchmode="singletask" android:statenotneeded="true"/> <activity> android:name="omg_its_azzler.launcher.appsactivity" android:theme="@android:style/theme.notitlebar.fullscreen"> <intent-filter> <action android:name="android.intent.action.main"/> <category android:name="android.intent.category.home"/> <category android:name="android.intent.category.default"/> </intent-filter> </activity> </application>
the application tag root tag activities, , intent filter goes inside activity tag
Comments
Post a Comment