In my activity, there is a scenario where the user can click the back button before the activity is loaded. This back button click needs to be handled.
What I basically do is:
// Back Button Handling Code
// Detect Premature Exit
If prematureExit = true then
I have 2 activities - Main and actPage2. Now I have a condition that when its met, the main activity should end and start the second activity(actPage2).
My problem is the code runs even after Activity.Finish line. The only way it works is when i add return after the activity.finish or use Else...