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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -