Set Starting "Activity" for an application

qsrtech

Active Member
Licensed User
Longtime User
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!
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The "starting activity" is set by the following intent filter:
B4X:
<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
Top