Stopping activities

blong

Active Member
Licensed User
Longtime User
I have played with the "Two Activities" example and have a query.

When you run the program (on emulator) the second activity starts and when one clicks an item in the list then you are returned to Main activity. All works as required .. however

When one wants to end the program you click on the return symbol and the first activity is stopped BUT second activity now pops up.

Is there an equivalent opposite command from "Startactivity" such as "Endactivity" to accomplish this...

i.e. I would like to clean up all activities when main activity is closed by user.
 

blong

Active Member
Licensed User
Longtime User
Thanks for that... still learning.

And thanks for all your efforts in making the product and providing such great forum feedback.
 
Upvote 0

WZSun

Member
Licensed User
Longtime User
Hi Erel,
What should be the correct approach..

Activity.Finish
StartActivity(form2)

or
StartActivity(form2)
Activity.Finish


Reason I asked is that I noticed sometimes in the first statement, the screen goes blank before the form2 screen appears. This is more obvious when I'm adding records to sql file and returning it to previous form.

In some cases, I have to use the 2nd approach. Which script should we use?

Rgds
 
Upvote 0
Top