D DawningTruth Active Member Licensed User Jun 9, 2019 #1 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?
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 Longtime User Jun 9, 2019 #2 u need Activity.Finish and open it from other place (Starter Service or other Activity) with StartActivity(MyActivity) Upvote 0
u need Activity.Finish and open it from other place (Starter Service or other Activity) with StartActivity(MyActivity)
D DawningTruth Active Member Licensed User Jun 9, 2019 #3 MarkusR said: u need Activity.Finish and open it from other place (Starter Service or other Activity) with StartActivity(MyActivity) Click to expand... Thx Markus Upvote 0
MarkusR said: u need Activity.Finish and open it from other place (Starter Service or other Activity) with StartActivity(MyActivity) Click to expand... Thx Markus
D DawningTruth Active Member Licensed User Jun 9, 2019 #4 Update. Got it working. Used the code from this thread: https://www.b4x.com/android/forum/threads/start-activity-from-the-same-activity.52347/#post-327832 Upvote 0
Update. Got it working. Used the code from this thread: https://www.b4x.com/android/forum/threads/start-activity-from-the-same-activity.52347/#post-327832
MarkusR Well-Known Member Licensed User Longtime User Jun 9, 2019 #5 Erels Hint there should also work B4X: Sub Button1_Click Activity.Finish StartActivity(Me) End Sub Upvote 0