android - difference between finish() and killProcess by myPid(); -
I've always heard about ending any activity or First & lt ;: I think what is the difference between what is accurate? Third before Second <: What is the best thing about them? This depends on what you need, but it the third & lt; : Some time when we lose data from one activity to another, when we pass data through intent, data will be lost using the fin () or the kill process ? Of course the process of killing! KillProcess will not return to the previous activity, it will kill all the activities launched in this process. android.os.Process .killProcess (Android.os.Process.myPid ());
The second What is the best thing about them?
android.os.Process.killProcess (android.os.Process.myPid ());
Completed will delete the activity from which you
End
killProcess
Comments
Post a Comment