Answer the question
In order to leave comments, you need to log in
How to change the entry point in the application for android?
If you create a new project in Eclipse by default, it creates one class and markup for it. Next, I manually add a new Activity. Where can I change something so that at startup it starts not the standard Activity, but the one that I created later manually?
PS I tried to add in the manifest
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Answer the question
In order to leave comments, you need to log in
I tried to add in the manifest for the second activity, and remove this intent filter for the first
Eclipse in the launch configuration settings (what works when you click on launch) has a parameter like "what to do after launch": yadi.sk/d/KS549Ht7RdnqV - see if you have a hard-coded activity that you need to launch.
The following parameters are responsible for the entry point (Activity to launch)
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<activity
android:name="com.example.test4.MainActivity"
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="com.example.test4.MainActivity2"
android:label="@string/app_name2" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question