tsteward Well-Known Member Licensed User Longtime User Apr 26, 2021 #1 I have my main activity "main" which opens activity2 "Vehicle" pressing a button on activity 2 calls callsubdelay2 to open activity3 "Feedback" when complete it uses callsubdelay2 to return to Vehicle and process and save the data collected in Feedback. Whilst in vehicle I save the data etc but if I press back it goes back to feedback instead of main. How do I prevent feedback being opened this way?
I have my main activity "main" which opens activity2 "Vehicle" pressing a button on activity 2 calls callsubdelay2 to open activity3 "Feedback" when complete it uses callsubdelay2 to return to Vehicle and process and save the data collected in Feedback. Whilst in vehicle I save the data etc but if I press back it goes back to feedback instead of main. How do I prevent feedback being opened this way?
tsteward Well-Known Member Licensed User Longtime User Apr 26, 2021 #2 ok activity.finish after the callsubdelay seems to work Thank you Upvote 0
udg Expert Licensed User Longtime User Apr 26, 2021 #3 I'm sure you already know it: B4xPages solve any problem due to an app's lifecycle. My suggestion is to search for it and take some time to adapt your app to it. Everything will be easier and smoother. Upvote 0
I'm sure you already know it: B4xPages solve any problem due to an app's lifecycle. My suggestion is to search for it and take some time to adapt your app to it. Everything will be easier and smoother.
tsteward Well-Known Member Licensed User Longtime User Apr 26, 2021 #4 Nearly 18 activities and probably 10,000 lines of code 9 years in the making. Appreciate the sentiment but no thanks. Upvote 0
Nearly 18 activities and probably 10,000 lines of code 9 years in the making. Appreciate the sentiment but no thanks.