Skip to content

Commit 0089735

Browse files
committed
- kill app on background
1 parent 040accd commit 0089735

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/template/android/activity/pen_activity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ protected void onResume() {
295295
@Override
296296
protected void onPause() {
297297
super.onPause();
298+
299+
// kill the process when app is backgrounded
300+
android.os.Process.killProcess(android.os.Process.myPid());
301+
System.exit(0);
298302
}
299303

300304
@Override

0 commit comments

Comments
 (0)