Q qsrtech Active Member Licensed User Longtime User Mar 31, 2013 #1 Hi, can't seem to find out how to set which activity starts when the app is started. I'd like to be able to set which activity is the "main" one. Thanks!
Hi, can't seem to find out how to set which activity starts when the app is started. I'd like to be able to set which activity is the "main" one. Thanks!
icefairy333 Active Member Licensed User Longtime User Mar 31, 2013 #2 that's not suggestion.:sign0161: qsrtech said: Hi, can't seem to find out how to set which activity starts when the app is started. I'd like to be able to set which activity is the "main" one. Thanks! Click to expand... Upvote 0
that's not suggestion.:sign0161: qsrtech said: Hi, can't seem to find out how to set which activity starts when the app is started. I'd like to be able to set which activity is the "main" one. Thanks! Click to expand...
Erel B4X founder Staff member Licensed User Longtime User Mar 31, 2013 #3 The "starting activity" is set by the following intent filter: Code: Copy <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> You can open the manifest file and see that it is added automatically to the main activity. You can move this intent filter to a different activity and make that activity the starting activity. This can be done by making the manifest file read-only or with the manifest editor (not trivial in this case). Upvote 0
The "starting activity" is set by the following intent filter: Code: Copy <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> You can open the manifest file and see that it is added automatically to the main activity. You can move this intent filter to a different activity and make that activity the starting activity. This can be done by making the manifest file read-only or with the manifest editor (not trivial in this case).