Android Question Restarting an Activity

DawningTruth

Active Member
Licensed User
My app requires me to restart an activity after a user generated parameter change.
I have tried:

B4X:
StartActivity(MyActivity)
But it gives me an error as it cannot find: MyActivity

Any suggestions on how I can get the App to restart the activity?
 

MarkusR

Well-Known Member
Licensed User
u need Activity.Finish and open it from other place (Starter Service or other Activity) with StartActivity(MyActivity)
 

MarkusR

Well-Known Member
Licensed User
Erels Hint there should also work

B4X:
Sub Button1_Click
        
    Activity.Finish
    StartActivity(Me)
    
End Sub
 
Top