Problem with Activity Finish

Bill Norris

Active Member
Licensed User
Longtime User
I have a "Navigator" activity that contains several buttons that each start a different activity. Each of those other activities has a "back" button that goes back to "Navigator". On one particular activity, I'll call it Activity1, I have Activity.finish in the code of the Back button, as I want Activity1 to completely refresh upon the next re-entry. What I am finding is if I try to go immediately back to Activity1 from Navigator, Activity1 does not load. If I wait several (5-10) seconds, it will reload fine. If I remove the activity.finish, it will reload immediately. Also, if in debug I put a break at the line that calls Activity1, it loads immediately as desired when I hit F5 at the break. Is there something about activity.finish that I am not aware? Does it sometimes take several seconds to actually "unload"?
 
Hi Bill.

Can you post the code please?

Are you consuming the keypress event when you call Activity.Finish?

cheers, Ricky
 
Upvote 0
RE

Is it accurate to conclude that once activity.finish is called, then that activity will not re-load until activity.finish is, well, finished?
 
Upvote 0
Back
Top