Return Android Activity of two methods

finish return

finish():

When your action is completed activity, or Activity to be closed when calling this method. When you call this method, the system simply top Activity out of the stack, and did not call onDestory () method, which takes resources has not been released in time. Because out of the stack, so when the return key when you click on the phone above, you will not find this Activity. 

evil story ():

The system destroyed this example Activity occupy space in memory. Activity in the life cycle, onDestory () method is the last step of his life, space and other resources will be recovered. When re-entering this Activity, you must re-create, execute onCreate () method.

intent to return

an interface intent jump, there is no transmission data, the interface to present onStop () ends, starting from onCreate () to the next screen.

The problems encountered:

Since the interface has frequently requested, each finish and then return to this screen will appear delays, show that there is no real-time data on the phenomenon. The finish is intent to modify the way to avoid the generation of such issues.

But I also do not understand the drawbacks of using a jump intent to return, will the interface thread has been running, the impact to the phone memory to run it?

Guess you like

Origin www.cnblogs.com/ksp-/p/11784935.html