android - difference between finish() and killProcess by myPid(); -


I've always heard about ending any activity or android.os.Process .killProcess (Android.os.Process.myPid ());

First & lt ;: I think what is the difference between what is accurate?
The second What is the best thing about them?

Third For some time when we pass data through intent, then will the data be lost?

before What is the exact difference between them?

android.os.Process.killProcess (android.os.Process.myPid ());

Completed will delete the activity from which you End

Second <: What is the best thing about them?

This depends on what you need, but it killProcess

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.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -