When my application first opens my first action, which is presented to the user, it may change depending on the configuration settings. I only know how to hard-code the first action that is executed when the application starts, adding something like this in the manifest
<activity android:label="@string/app_name" android:name=".MyFirstActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
Where MyFirstActivity is the name of the class of the first activity class to be launched. How can I dynamically choose which activity to start first when the application starts first, rather than hard-coded it in the manifest?
Thanks!
source share