how to stop an activity?

zhanghui

Member
Licensed User
Longtime User
我是初学者, 请问如何通过代码停止一个Activity? 非常谢谢!
I am a beginner, I would like to know how to stop an activity?
 

zhanghui

Member
Licensed User
Longtime User
How to remove an activity for memory.

Activity.Finish

Thank NJDude(Basic4ppc Expert) kindly reply.
but I also has a question about it .
"Activity.finish" really stop the activity. but the activiy still stays in the memory. How can I stop a activity and also remove it from the memory by codes.
thank you very much for you kindly reply!
 

klaus

Expert
Licensed User
Longtime User
You can use, but it is not recommended.
B4X:
ExitApplication
From the help:
Immediately ends the application and stops the process.
Most applications should not use this method and prefer Activity.Finish which lets the OS decide when the process is killed.

Best regards.
 

zhanghui

Member
Licensed User
Longtime User
You can use, but it is not recommended.
B4X:
ExitApplication
From the help:
Immediately ends the application and stops the process.
Most applications should not use this method and prefer Activity.Finish which lets the OS decide when the process is killed.

Best regards.


Thanks Klaus for your kindly reply.
 

zhanghui

Member
Licensed User
Longtime User
I have a question about region

I have a question in graphics programming, for example, draw a polygen, how to decide whether the touch is in the polygen or not.
 
Top