Android Question Change main activity without manifest

Pooya1

Active Member
Licensed User
I can change main activity in manifest with below code
B4X:
<intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

It is OK for first time before compile
In my app,in first activity i use below code
Activity.Finish
StartActivity(Menu)

But it is slow and at least 200 ms take for show Menu activity
Can i change main activity filter runtime?
 

Pooya1

Active Member
Licensed User
It will be simpler to replace the two activities. Copy the code of the Menu activity to the Main activity.
No it was example for my question
Actually my main activity is splash and user can hide it in settings
And when hide it,i have to dont show it and immediately finish activity and start menu activity (splash activity is important for me)
Thanks
 
Upvote 0
Top