android - How To set UP Activities in Manifest -


 <application     android:allowbackup="true"     android:icon="@drawable/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme" >     <activity         android:name=".precus"         android:label="@string/app_name"         android:screenorientation="portrait" >         <intent-filter>             <action android:name="com.yair.guessit.precus" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <activity         android:name="customize"         android:label="@string/app_name"         android:screenorientation="portrait" >     </activity>     <activity         android:name="firstpage"         android:label="@string/app_name"         android:screenorientation="portrait" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.default" />         </intent-filter>     </activity>     <activity         android:name=".mainactivity"         android:label="@string/app_name"         android:screenorientation="portrait" >         <intent-filter>             <action android:name="com.yair.guessit.mainactivity" />              <category android:name="android.intent.category.default" />         </intent-filter>     </activity> </application> 

this manifest there, , app dont open . can explain me how set manifest activites? precus first open when app open. @ precus activity there intent when button clicked customize activity. why not working?

change line in file

<action android:name="com.yair.guessit.precus" /> 

to

<action android:name="android.intent.action.main"/> 

then run it.

if work fine. mark accepted answer.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -