What will happen when System.exit(0) execute?
问题 I have two different activities. The first launches the second one. Intent intent = new Intent(this, Activity2.class); startActivity(intent); In the second activity I call System.exit(0). The first activity comes back caused by 'page stack' I think. But I found two things happened. the variant in progress lost its value. (The progress restart I think) the file created in first activity, and appended data in second activity and saved, lost!(erased from sandbox). The file I created using