Android Question callsubdelayed2 how to close activity

tsteward

Well-Known Member
Licensed User
Longtime User
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
ok activity.finish after the callsubdelay seems to work

Thank you
 
Upvote 0

udg

Expert
Licensed User
Longtime User
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

tsteward

Well-Known Member
Licensed User
Longtime User
Nearly 18 activities and probably 10,000 lines of code 9 years in the making.
Appreciate the sentiment but no thanks.
 
Upvote 0
Top