Question

This is what my AndroinManifest.xml looks like

<manifest package="com.dz122596.bubblebop"
    android:versionCode="1"
    android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />

    <application
    android:icon="@drawable/ic_launcher"    <!-- THIS ICON(IMAGE) WILL BE SHOWN IN YOUR APPS -->
    android:label="@string/app_name"     <!-- HERE LABEL(APP NAME) -->
    <activity
        android:name=".startingpoint"  <!-- (.)dot means current dir, if your activity is in another package then give cull package name ex: com.xxx.Activity  -->
        android:label="@string/app_name"
        android:screenOrientation="portrait" 
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</manifest>

And startingpoint.java the activity Iam trying to launch is in the same package but when I run it says no launcher activity found.

Was it helpful?

Solution

Your manifest file's code says that your forgot to end the Application tag. You need to write </application> before </manifest> tag. Just add it and your problem will be solved.

<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.dz122596.bubblebop"
    android:versionCode="1"
    android:versionName="1.0" xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />

    <application
    android:icon="@drawable/ic_launcher"    
    android:label="@string/app_name" >    
    <activity
        android:name=".startingpoint"  
        android:label="@string/app_name"
        android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
   </application>                <!-- Add this closing tag -->
</manifest>

OTHER TIPS

just make few changes to ur manifest file. follow below manifewst file.

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" />

<application android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name">

    <activity android:name="com.dz122596.bubblebop.startingpoint"
        android:label="@string/app_name" android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

</application>
</manifest>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top