The corresponding activity is not being initated even after changing android manifest -
** can see android manifest xml.. there 2 activities .. mainactivity , mainactivity2.. , according below code(please point me if wrong) supposed class mainactivity 2 started first.. instead starting mainactivty first.. please find mistake here..** `
<application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name=".mainactivity2" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".mainactivity" android:label="@string/app_name" > <intent-filter> <action android:name="com.namet.myapplication.mainactivity2" /> <category android:name="android.intent.category.default" /> </intent-filter> </activity> </application>
you have make activity catogorie launcher ,try follows
<activity android:name=".mainactivity2" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".mainactivity" android:label="@string/app_name" > </activity>
Comments
Post a Comment