{"id":939,"date":"2011-01-24T01:00:00","date_gmt":"2011-01-23T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2011-01-24-1.html"},"modified":"2026-07-16T15:21:33","modified_gmt":"2026-07-16T06:21:33","slug":"2011-01-24-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2011-01-24-1.html","title":{"rendered":"Android \u3067 System.exit() \u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531\u3068\u3001\u7d42\u4e86\u65b9\u6cd5\u306e\u307e\u3068\u3081"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3053\u306e\u8a18\u4e8b\u306f 2011\u5e74\u306b\u66f8\u3044\u305f\u300cAndroid \u3067 <code>System.exit()<\/code> \u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531\u300d\u3092\u30012026\u5e74\u6642\u70b9\u306e Android \u3067\u5b9f\u6e2c\u3057\u76f4\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u4eca\u3067\u3082\u30a2\u30d7\u30ea\u30b3\u30fc\u30c9\u304b\u3089 <code>System.exit()<\/code> \u3067\u30d7\u30ed\u30bb\u30b9\u3092\u843d\u3068\u3059\u306e\u306f\u907f\u3051\u305f\u65b9\u304c\u3088\u3044\u3067\u3059\u3002Activity \u3092\u9589\u3058\u305f\u3044\u306a\u3089 <code>finish()<\/code>\u3001\u30bf\u30b9\u30af\u3092\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u4e00\u89a7\u304b\u3089\u3082\u6d88\u3057\u305f\u3044\u306a\u3089 <code>finishAndRemoveTask()<\/code>\u3001\u30a2\u30d7\u30ea\u3092\u7d42\u4e86\u3067\u306f\u306a\u304f\u80cc\u9762\u3078\u9001\u308b\u3060\u3051\u306a\u3089 <code>moveTaskToBack(true)<\/code> \u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u307e\u305a\u7d50\u8ad6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7528\u9014\u3054\u3068\u306b\u5206\u3051\u308b\u3068\u3053\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u3084\u308a\u305f\u3044\u3053\u3068<\/th><th>\u4f7f\u3046\u3082\u306e<\/th><th>\u5099\u8003<\/th><\/tr><\/thead><tbody><tr><td>\u4eca\u306e Activity \u3092\u9589\u3058\u308b<\/td><td><code>finish()<\/code><\/td><td>\u57fa\u672c\u306f\u3053\u308c<\/td><\/tr><tr><td>\u30eb\u30fc\u30c8 Activity \u304b\u3089\u30bf\u30b9\u30af\u3054\u3068\u9589\u3058\u3001\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u304b\u3089\u3082\u6d88\u3057\u305f\u3044<\/td><td><code>finishAndRemoveTask()<\/code><\/td><td>API 21\u4ee5\u964d<\/td><\/tr><tr><td>\u30a2\u30d7\u30ea\u3092\u7d42\u4e86\u305b\u305a\u3001\u30db\u30fc\u30e0\u3078\u623b\u3057\u305f\u3088\u3046\u306b\u80cc\u9762\u3078\u9001\u308b<\/td><td><code>moveTaskToBack(true)<\/code><\/td><td>\u7d42\u4e86\u3067\u306f\u306a\u3044<\/td><\/tr><tr><td>\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3059\u308b<\/td><td>\u4f7f\u308f\u306a\u3044<\/td><td><code>System.exit()<\/code> \/ <code>killProcess()<\/code> \u306f\u901a\u5e38\u306e\u7d42\u4e86\u51e6\u7406\u3092\u98db\u3070\u3059<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u30a2\u30d7\u30ea\u3092\u7d42\u4e86\u3059\u308b\u30dc\u30bf\u30f3\u300d\u3092\u4f5c\u308a\u305f\u304f\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001Android \u3067\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u623b\u308b\u64cd\u4f5c\u30fb\u30db\u30fc\u30e0\u64cd\u4f5c\u30fb\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u753b\u9762\u3067\u30a2\u30d7\u30ea\u304b\u3089\u96e2\u308c\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u3002\u958b\u767a\u8005\u5074\u304c\u30d7\u30ed\u30bb\u30b9\u3092\u843d\u3068\u3057\u3066\u7d42\u4e86\u611f\u3092\u4f5c\u308b\u5fc5\u8981\u306f\u3001\u307b\u3068\u3093\u3069\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u969b\u306b\u8a66\u3057\u305f\u74b0\u5883<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5c0f Activity \u3092\u4f5c\u308a\u3001\u5404\u7d42\u4e86\u65b9\u6cd5\u3092\u547c\u3093\u3060\u3068\u304d\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u30ed\u30b0\u3092\u53d6\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u7aef\u672b: Android Emulator Medium_Phone_API_36.0\nOS: Android 16 \/ API 36\ntargetSdkVersion: 36\nbuild-tools: 36.1.0\n\u78ba\u8a8d\u65e5: 2026-07-14\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Activity \u5074\u3067\u306f\u3001<code>onCreate<\/code> \/ <code>onStart<\/code> \/ <code>onResume<\/code> \/ <code>onPause<\/code> \/ <code>onStop<\/code> \/ <code>onDestroy<\/code> \u3092\u30ed\u30b0\u306b\u51fa\u3057\u3001\u30e2\u30fc\u30c9\u3054\u3068\u306b\u6b21\u306e\u51e6\u7406\u3092\u547c\u3073\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">switch (mode) {\n    case \"finish\":\n        finish();\n        break;\n    case \"finish_remove\":\n        finishAndRemoveTask();\n        break;\n    case \"move_task_back\":\n        moveTaskToBack(true);\n        break;\n    case \"system_exit\":\n        System.exit(0);\n        break;\n    case \"kill_process\":\n        Process.killProcess(Process.myPid());\n        break;\n}\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">finish() \u306f Activity \u306e\u7d42\u4e86<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>finish()<\/code> \u3092\u547c\u3076\u3068\u3001Activity \u306e\u7d42\u4e86\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u901a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">I\/ExitProbe: onCreate pid=11507\nI\/ExitProbe: onStart pid=11507\nI\/ExitProbe: onResume pid=11507\nI\/ExitProbe: runMode finish pid=11507\nI\/ExitProbe: onPause pid=11507\nI\/ExitProbe: onStop pid=11507\nI\/ExitProbe: onDestroy pid=11507\npid_after_18s=11507\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>onDestroy<\/code> \u307e\u3067\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u304c\u300118\u79d2\u5f8c\u3082\u30d7\u30ed\u30bb\u30b9ID\u306f\u6b8b\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u3053\u304c\u5927\u4e8b\u3067\u3059\u3002<code>finish()<\/code> \u306f\u300cActivity \u3092\u9589\u3058\u308b\u300d\u64cd\u4f5c\u3067\u3042\u3063\u3066\u3001\u300c\u30a2\u30d7\u30ea\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u6bba\u3059\u300d\u64cd\u4f5c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u306f Android \u3067\u306f\u81ea\u7136\u306a\u6319\u52d5\u3067\u3059\u3002\u30d7\u30ed\u30bb\u30b9\u3092\u3044\u3064\u6b8b\u3059\u304b\u3001\u3044\u3064\u56de\u53ce\u3059\u308b\u304b\u306f\u30b7\u30b9\u30c6\u30e0\u5074\u304c\u5224\u65ad\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">finishAndRemoveTask() \u306f\u30bf\u30b9\u30af\u3092\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u304b\u3089\u5916\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>finishAndRemoveTask()<\/code> \u3082\u3001\u624b\u5143\u306e\u5b9f\u6e2c\u3067\u306f Activity \u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306f\u901a\u5e38\u901a\u308a\u9032\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">I\/ExitProbe: onCreate pid=11548\nI\/ExitProbe: onStart pid=11548\nI\/ExitProbe: onResume pid=11548\nI\/ExitProbe: runMode finish_remove pid=11548\nI\/ExitProbe: onPause pid=11548\nI\/ExitProbe: onStop pid=11548\nI\/ExitProbe: onDestroy pid=11548\npid_after_18s=11548\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>finishAndRemoveTask()<\/code> \u306f\u3001Activity \u3092\u9589\u3058\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u305d\u306e Activity \u304c\u5c5e\u3059\u308b\u30bf\u30b9\u30af\u3092\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u4e00\u89a7\u304b\u3089\u5916\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002\u30ed\u30b0\u3092\u898b\u308b\u9650\u308a\u3001\u3053\u308c\u3082\u30d7\u30ed\u30bb\u30b9\u3092\u6bba\u3059API\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u300c\u30ed\u30b0\u30a2\u30a6\u30c8\u5b8c\u4e86\u5f8c\u306b\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3078\u623b\u3055\u305a\u3001\u30bf\u30b9\u30af\u81ea\u4f53\u3092\u7d42\u308f\u3089\u305b\u305f\u3044\u300d\u306a\u3069\u3001\u30bf\u30b9\u30af\u3068\u3057\u3066\u6b8b\u3057\u305f\u304f\u306a\u3044\u753b\u9762\u3067\u691c\u8a0e\u3059\u308bAPI\u3067\u3059\u3002\u666e\u901a\u306e\u753b\u9762\u9077\u79fb\u3084\u623b\u308b\u64cd\u4f5c\u306e\u4ee3\u308f\u308a\u306b\u4e71\u7528\u3059\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">moveTaskToBack(true) \u306f\u7d42\u4e86\u3067\u306f\u306a\u304f\u80cc\u9762\u9001\u308a<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>moveTaskToBack(true)<\/code> \u306f\u300c\u30a2\u30d7\u30ea\u3092\u9589\u3058\u305f\u3088\u3046\u306b\u898b\u305b\u308b\u300d\u305f\u3081\u306b\u4f7f\u308f\u308c\u304c\u3061\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u30bf\u30b9\u30af\u3092\u80cc\u9762\u3078\u9001\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">I\/ExitProbe: onCreate pid=11587\nI\/ExitProbe: onStart pid=11587\nI\/ExitProbe: onResume pid=11587\nI\/ExitProbe: runMode move_task_back pid=11587\nI\/ExitProbe: onPause pid=11587\nI\/ExitProbe: onStop pid=11587\npid_after_18s=11587\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>onDestroy<\/code> \u306f\u547c\u3070\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002Activity \u306f\u505c\u6b62\u72b6\u614b\u306b\u306a\u308a\u3001\u30bf\u30b9\u30af\u306f\u80cc\u9762\u306b\u56de\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u30db\u30fc\u30e0\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u3068\u304d\u306b\u8fd1\u3044\u6319\u52d5\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u306e\u305f\u3081\u3001<code>moveTaskToBack(true)<\/code> \u3092\u300c\u7d42\u4e86\u51e6\u7406\u300d\u3068\u547c\u3076\u306e\u306f\u5c11\u3057\u5371\u967a\u3067\u3059\u3002\u7d42\u4e86\u3067\u306f\u306a\u304f\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u30db\u30fc\u30e0\u3078\u623b\u3059\u30fb\u30bf\u30b9\u30af\u3092\u80cc\u9762\u3078\u9001\u308b\u305f\u3081\u306eAPI\u3068\u3057\u3066\u8aac\u660e\u3057\u305f\u65b9\u304c\u5b9f\u614b\u306b\u5408\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">System.exit(0) \u306f\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u98db\u3070\u3057\u3066\u30d7\u30ed\u30bb\u30b9\u3092\u843d\u3068\u3059<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>System.exit(0)<\/code> \u3092\u547c\u3076\u3068\u3001\u30ed\u30b0\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">I\/ExitProbe: onCreate pid=11636\nI\/ExitProbe: onStart pid=11636\nI\/ExitProbe: onResume pid=11636\nI\/ExitProbe: runMode system_exit pid=11636\nI\/ActivityManager: Process net.ecoop.exitprobe (pid 11636) has died: fg  TOP\nW\/ActivityTaskManager: Force removing ActivityRecord{... net.ecoop.exitprobe\/.MainActivity ...}: app died, no saved state\npid_after_18s=\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>onPause<\/code>\u3001<code>onStop<\/code>\u3001<code>onDestroy<\/code> \u306f\u51fa\u3066\u3044\u307e\u305b\u3093\u3002\u30b7\u30b9\u30c6\u30e0\u5074\u306e\u30ed\u30b0\u306b\u3082 <code>app died, no saved state<\/code> \u3068\u51fa\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3064\u307e\u308a\u3001Activity \u306b\u300c\u7d42\u308f\u308a\u307e\u3059\u300d\u3068\u4f1d\u3048\u3066\u9589\u3058\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u7a81\u7136\u3044\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u753b\u9762\u306e\u4fdd\u5b58\u3001\u9077\u79fb\u3001\u5f8c\u7247\u4ed8\u3051\u3092 Activity \u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306b\u4e57\u305b\u3066\u3044\u308b\u5834\u5408\u3001\u305d\u306e\u51e6\u7406\u306f\u901a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u304c\u3001Android \u3067 <code>System.exit()<\/code> \u3092\u907f\u3051\u308b\u3044\u3061\u3070\u3093\u5927\u304d\u306a\u7406\u7531\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Process.killProcess() \u3082\u540c\u3058<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>android.os.Process.killProcess(Process.myPid())<\/code> \u306a\u3089 Android \u306eAPI\u3060\u304b\u3089\u3088\u3055\u305d\u3046\u306b\u898b\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u5b9f\u969b\u306b\u306f\u3001\u3053\u308c\u3082\u901a\u5e38\u306e\u7d42\u4e86\u51e6\u7406\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">I\/ExitProbe: onCreate pid=12065\nI\/ExitProbe: onStart pid=12065\nI\/ExitProbe: onResume pid=12065\nI\/ExitProbe: runMode kill_process pid=12065\nI\/ActivityManager: Process net.ecoop.exitprobe (pid 12065) has died: fg  TOP\nW\/ActivityTaskManager: Force removing ActivityRecord{... net.ecoop.exitprobe\/.MainActivity ...}: app died, no saved state\npid_after_18s=\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>System.exit(0)<\/code> \u3068\u540c\u3058\u304f\u3001<code>onPause<\/code> \/ <code>onStop<\/code> \/ <code>onDestroy<\/code> \u306f\u51fa\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u30d7\u30ed\u30bb\u30b9\u3092\u6bba\u3057\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30a2\u30d7\u30ea\u306e\u7d42\u4e86\u51e6\u7406\u3068\u3057\u3066\u306f\u4f7f\u308f\u306a\u3044\u65b9\u304c\u3088\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3069\u3046\u66f8\u3051\u3070\u3088\u3044\u304b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5358\u306b\u4eca\u306e\u753b\u9762\u3092\u9589\u3058\u305f\u3044\u306a\u3089\u3001\u3053\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">finish()\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Java \u306a\u3089\u3053\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">finish();\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30bf\u30b9\u30af\u3054\u3068\u9589\u3058\u3066\u3001\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u306b\u3082\u6b8b\u3057\u305f\u304f\u306a\u3044\u306a\u3089\u3001\u30eb\u30fc\u30c8 Activity \u3067\u6b21\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">finishAndRemoveTask()\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001\u3053\u308c\u306f\u300c\u666e\u901a\u306e\u7d42\u4e86\u30dc\u30bf\u30f3\u300d\u306e\u305f\u3081\u306b\u5fc5\u305a\u5fc5\u8981\u306aAPI\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u306b\u6b8b\u3059\u304b\u3069\u3046\u304b\u307e\u3067\u5909\u3048\u308b\u306e\u3067\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u5b8c\u4e86\u753b\u9762\u306a\u3069\u3001\u30bf\u30b9\u30af\u3068\u3057\u3066\u6b8b\u3057\u305f\u304f\u306a\u3044\u7406\u7531\u304c\u3042\u308b\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30db\u30fc\u30e0\u3078\u623b\u3057\u305f\u3044\u3060\u3051\u306a\u3089\u3001\u7d42\u4e86\u3067\u306f\u306a\u304f\u80cc\u9762\u9001\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">moveTaskToBack(true)\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3092\u4f7f\u3046\u3068 Activity \u306f <code>onPause<\/code> \/ <code>onStop<\/code> \u306b\u9032\u307f\u307e\u3059\u304c\u3001<code>onDestroy<\/code> \u307e\u3067\u306f\u884c\u304b\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u7d42\u4e86\u51e6\u7406\u3092\u671f\u5f85\u3057\u3066\u66f8\u304f\u306e\u3067\u306f\u306a\u304f\u3001\u300c\u30bf\u30b9\u30af\u3092\u80cc\u9762\u306b\u56de\u3059\u300d\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d42\u4e86\u30dc\u30bf\u30f3\u306f\u672c\u5f53\u306b\u5fc5\u8981\u304b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u591a\u304f\u306eAndroid\u30a2\u30d7\u30ea\u3067\u306f\u3001\u7d42\u4e86\u30dc\u30bf\u30f3\u305d\u306e\u3082\u306e\u304c\u4e0d\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30e6\u30fc\u30b6\u30fc\u306f\u623b\u308b\u64cd\u4f5c\u3067\u524d\u306e\u753b\u9762\u3078\u623b\u308a\u3001\u30db\u30fc\u30e0\u64cd\u4f5c\u3067\u30a2\u30d7\u30ea\u304b\u3089\u96e2\u308c\u3001\u6700\u8fd1\u4f7f\u3063\u305f\u30a2\u30d7\u30ea\u753b\u9762\u304b\u3089\u30bf\u30b9\u30af\u3092\u9078\u3073\u76f4\u3057\u307e\u3059\u3002\u958b\u767a\u8005\u304c\u30d7\u30ed\u30bb\u30b9\u3092\u843d\u3068\u3057\u3066\u300c\u7d42\u4e86\u300d\u3092\u4f5c\u308b\u3088\u308a\u3001\u4fdd\u5b58\u3059\u3079\u304d\u72b6\u614b\u3092\u9069\u5207\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u4fdd\u5b58\u3057\u3001Activity \/ Fragment \/ Compose \u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306b\u5408\u308f\u305b\u308b\u65b9\u304cAndroid\u3089\u3057\u3044\u4f5c\u308a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3069\u3046\u3057\u3066\u3082\u7d42\u4e86\u306b\u898b\u3048\u308b\u64cd\u4f5c\u3092\u7f6e\u304f\u306a\u3089\u3001\u300c\u30d7\u30ed\u30bb\u30b9\u3092\u843d\u3068\u3059\u300d\u3067\u306f\u306a\u304f\u3001\u300c\u753b\u9762\u3092\u9589\u3058\u308b\u300d\u300c\u30bf\u30b9\u30af\u3092\u80cc\u9762\u306b\u9001\u308b\u300d\u300c\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3066\u521d\u671f\u753b\u9762\u3078\u623b\u3059\u300d\u306e\u3069\u308c\u3092\u3057\u305f\u3044\u306e\u304b\u306b\u5206\u3051\u3066\u5b9f\u88c5\u3059\u308b\u3068\u4e8b\u6545\u304c\u6e1b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u3055\u3044\u3054\u306b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>System.exit()<\/code> \u306f\u3001Java\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u3057\u3066\u306f\u30d7\u30ed\u30bb\u30b9\u7d42\u4e86\u306eAPI\u3067\u3059\u304c\u3001Android\u30a2\u30d7\u30ea\u306e\u753b\u9762\u7d42\u4e86\u306b\u306f\u5411\u3044\u3066\u3044\u307e\u305b\u3093\u3002\u4eca\u56de\u306e\u5b9f\u6e2c\u3067\u3082\u3001Activity \u306e\u7d42\u4e86\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u901a\u3089\u305a\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u306f\u300c\u30a2\u30d7\u30ea\u304c\u6b7b\u3093\u3060\u300d\u3068\u6271\u308f\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Android\u3067\u7d42\u4e86\u3063\u307d\u3044\u51e6\u7406\u3092\u66f8\u304d\u305f\u304f\u306a\u3063\u305f\u3089\u3001\u307e\u305a <code>finish()<\/code>\u3001<code>finishAndRemoveTask()<\/code>\u3001<code>moveTaskToBack(true)<\/code> \u306e\u3069\u308c\u306a\u306e\u304b\u3092\u5207\u308a\u5206\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u30d7\u30ed\u30bb\u30b9\u3092\u6bba\u3059\u306e\u306f\u3001\u901a\u5e38\u306e\u30a2\u30d7\u30ea\u7d42\u4e86\u624b\u6bb5\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"\/memo\/archives\/android-finish-methods.html\">Android \u306e finish() \/ finishAndRemoveTask() \/ moveTaskToBack() \u306e\u9055\u3044<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"readmore\">\n\u25a0Activity#finish()<br \/>\n\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u9589\u3058\u308b\u969b\u306e\u6700\u826f\u306e\u7d42\u4e86\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n\u73fe\u5728\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u9589\u3058\u3066\u524d\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306b\u623b\u308a\u307e\u3059\u3002<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8d77\u52d5\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3067\u547c\u3073\u51fa\u3057\u305f\u5834\u5408\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u30d0\u30c3\u30af\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u6642\u3068\u540c\u3058\u52d5\u304d\u3067\u3001\u5b9f\u884c\u3059\u308b\u3068 onPause(), onDestroy()\u304c\u9806\u756a\u306b\u547c\u3070\u308c\u307e\u3059\u3002<br \/>\n\u5fa9\u5e30\u6642\u306f\u65b0\u898f\u751f\u6210\u3068\u306a\u308a onCreate(), onStart(), onResume() \u306e\u9806\u3067\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u25a0Activity#moveTaskToBack (boolean nonRoot)<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u3092\u7d42\u4e86\u3059\u308b\u969b\u306e\u63a8\u5968\u3055\u308c\u308b\u7d42\u4e86\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4e2d\u65ad\u72b6\u614b\u306b\u3057\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306b false \u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u59cb\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u4ee5\u5916\u306e\u547c\u3073\u51fa\u3057\u3067\u306f\u4f55\u3082\u3057\u306a\u304f\u306a\u308b\u305f\u3081\u3001\u901a\u5e38\u306f\u5f15\u6570\u306btrue\u3092\u6307\u5b9a\u3057\u3066\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<br \/>\n\u30db\u30fc\u30e0\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u305f\u6642\u306e\u52d5\u4f5c\u3068\u540c\u3058\u52d5\u304d\u3067\u3001\u5b9f\u884c\u3059\u308b\u3068onPause()\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br \/>\n\u6b21\u306e\u518d\u958b\u307e\u3067\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5f85\u6a5f\u72b6\u614b\u306b\u306a\u308a\u3001\u30e1\u30e2\u30ea\u4e0d\u8db3\u306b\u306a\u3063\u305f\u6642\u306fOS\u306b\u3088\u308a\u81ea\u52d5\u3067onDestroy()\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5168\u3066\u306e\u30bf\u30b9\u30af\u304c\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\nonDestroy()\u304c\u547c\u3070\u308c\u308b\u524d\u306b\u5fa9\u5e30\u3057\u305f\u6642\u306f\u6700\u5f8c\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304b\u3089\u518d\u958b\u3057\u3001onRestart(), onStart(), onResume() \u306e\u9806\u3067\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u4f8b:\n<p><\/p>\n<blockquote><p>this.moveTaskToBack(true);\n<\/p><\/blockquote>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3088\u308a\u5f15\u7528:\n<\/p>\n<blockquote><p><a href=\"http:\/\/developer.android.com\/reference\/android\/app\/Activity.html#moveTaskToBack(boolean)\">public boolean moveTaskToBack (boolean nonRoot)<\/a><br \/>\n&nbsp;<br \/>\nSince: API Level 1<br \/>\nMove the task containing this activity to the back of the activity stack. <br \/>\nThe activity&#8217;s order within the task is unchanged.<br \/>\nIf the task was moved (or it was already at the back) true is returned, else false.<br \/>\n&nbsp;<br \/>\n\u8a33:\u3053\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u542b\u3080\u30bf\u30b9\u30af\u5168\u4f53\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u30b9\u30bf\u30c3\u30af\u306e\u9806\u756a\u3092\u5f8c\u308d\u306b\u79fb\u52d5\u3055\u305b\u307e\u3059\u3002<br \/>\n\u30bf\u30b9\u30af\u5185\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u9806\u756a\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3002<br \/>\n&nbsp;<br \/>\n\u30d1\u30e9\u30e1\u30fc\u30bf<br \/>\nnonRoot\tIf false then this only works if the activity is the root of a task; if true it will work for any activity in a task.<br \/>\n&nbsp;&nbsp;\u8a33:false\u306e\u5834\u5408\u306f\u73fe\u5728\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u30bf\u30b9\u30af\u306e\u30eb\u30fc\u30c8\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3(\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u59cb\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3)\u306e\u6642\u3060\u3051\u52d5\u4f5c\u3057\u307e\u3059\u3002<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true\u306e\u5834\u5408\u306f\u30bf\u30b9\u30af\u5185\u306e\u3069\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3067\u3042\u3063\u3066\u3082\u52d5\u4f5c\u3057\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u25a0android.os.Process.killProcess(int pid)<br \/>\nProcess.myPid ()\u3092\u5f15\u6570\u306b\u4e0e\u3048\u308b\u3068\u73fe\u5728\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5bfe\u8c61\u306b\u547c\u3073\u51fa\u3059\u3068\u3001finish()\u3068\u540c\u3058\u304f\u305d\u306e\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001onDestroy()\u306a\u3069Activity\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u3092\u5168\u3066\u7121\u8996\u3057\u3066\u5f37\u5236\u7d42\u4e86\u3059\u308b\u305f\u3081\u3001\u901a\u5e38\u306f Activity.finish() \u304c\u63a8\u5968\u3055\u308c\u307e\u3059\u3002<br \/>\n\u4f8b:\n<\/p>\n<blockquote><p>android.os.Process.killProcess(Process.myPid());\n<\/p><\/blockquote>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3088\u308a\u5f15\u7528:\n<\/p>\n<blockquote><p><a href=\"http:\/\/developer.android.com\/reference\/android\/os\/Process.html#killProcess(int)\">public static final void killProcess (int pid)<\/a><br \/>\n&nbsp;<br \/>\nSince: API Level 1<br \/>\nKill the process with the given PID. <br \/>\nNote that, though this API allows us to request to kill any process based on its PID, <br \/>\nthe kernel will still impose standard restrictions on which PIDs you are actually able to kill. <br \/>\nTypically this means only the process running the caller&#8217;s packages\/application and any additional <br \/>\nprocesses created by that app; packages sharing a common UID will also be able to kill each other&#8217;s processes.<br \/>\n\u8a33:\u6307\u5b9a\u3057\u305fID\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306eAPI\u3067\u306f\u6307\u5b9a\u306ePID\u306b\u57fa\u3065\u3044\u3066\u3069\u3093\u306a\u30d7\u30ed\u30bb\u30b9\u3067\u3082\u7d42\u4e86\u3059\u308b\u3053\u3068\u304c\u8a31\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001<br \/>\n\u5b9f\u969b\u7d42\u4e86\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u306f\u30ab\u30fc\u30cd\u30eb\u306e\u6a19\u6e96\u7684\u306a\u5236\u9650\u3067\u6c7a\u307e\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3064\u307e\u308a\u3001\u5178\u578b\u7684\u306b\u306f\u547c\u3073\u51fa\u3057\u5143\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u884c\u3057\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u3068\u3001\u305d\u306e\u30a2\u30d7\u30ea\u304c\u4f5c\u6210\u3057\u305f\u8ffd\u52a0\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u9650\u3089\u308c\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<br \/>\nUID\u3092\u5171\u6709\u3057\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u307e\u305f\u304a\u4e92\u3044\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u7d42\u4e86\u3055\u305b\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>&nbsp;<br \/>\n\u25a0System.exit(int) <br \/>\nSystem.exit(RESULT_OK)\u306e\u3088\u3046\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u5b9f\u884c\u4e2d\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\nandroid.os.Process.killProcess(Process.myPid()) \u3068\u540c\u3058\u3088\u3046\u306a\u52d5\u304d\u306b\u306a\u308a\u307e\u3059\u304c\u3001<br \/>\n\u5b89\u5168\u3067\u306f\u306a\u3044\u306e\u3067\u4f7f\u3046\u3079\u304d\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u3001\n<\/p>\n<blockquote><p><a href=\"http:\/\/developer.android.com\/reference\/java\/lang\/System.html#exit(int)\">public static void exit (int code)<\/a><br \/>\n&nbsp;<br \/>\nSince: API Level 1<br \/>\nCauses the virtual machine to stop running and the program to exit. <br \/>\nIf runFinalizersOnExit(boolean) has been previously invoked with a true argument, then all objects will be properly garbage-collected and finalized first.<br \/>\n\u8a33:\u30d0\u30fc\u30c1\u30e3\u30eb\u30de\u30b7\u30f3\u306e\u5b9f\u884c\u3092\u505c\u6b62\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7d42\u4e86\u3055\u305b\u307e\u3059\u3002<br \/>\nrunFinalizersOnExit(boolean) \u3092\u4e8b\u524d\u306b\u5f15\u6570\u306btrue\u3092\u6307\u5b9a\u3057\u3066\u547c\u3073\u51fa\u3057\u3066\u308c\u3070\u3001\u5168\u3066\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u6700\u521d\u306b\u9069\u5207\u306b\u30ac\u30d9\u30fc\u30b8\u30b3\u30ec\u30af\u30c8\u3055\u308c\u3066\u30d5\u30a1\u30a4\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u307e\u3059\u3002\n<\/p><\/blockquote>\n<p>\u306e\u3088\u3046\u306b\u4e00\u898b\u3001runFinalizersOnExit(true)\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u3051\u3070\u554f\u984c\u306a\u3044\u304b\u306e\u3088\u3046\u306b\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001<br \/>\n\u5b9f\u969b\u306b\u306f<a href=\"http:\/\/developer.android.com\/reference\/java\/lang\/System.html#runFinalizersOnExit(boolean)\">runFinalizersOnExit(boolean)<\/a>\u306e\u8aac\u660e\u306b\n<\/p>\n<blockquote><p>This method is deprecated. this method is unsafe.\n<\/p><\/blockquote>\n<p>\u3068\u3001\u3069\u3061\u3089\u306b\u3057\u3066\u3082\u5b89\u5168\u3067\u306f\u306a\u3044\u4e8b\u304c\u660e\u78ba\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u901a\u5e38\u306f finish() \u307e\u305f\u306f moveTaskToBack(true)\u3092\u4f7f\u3044\u3001\u3069\u3046\u3057\u3066\u3082\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u7d42\u4e86\u3057\u305f\u3044\u5834\u5408\u306f\u3001Process.killProcess(Process.myPid ()) \u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<br \/>\n&nbsp;<br \/>\n\u25a0\u304a\u307e\u3051\u2026<br \/>\n\u30a2\u30d7\u30ea\u5185\u306e\u5168\u3066\u306e\u30bf\u30b9\u30af(\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3,\u30d7\u30ed\u30bb\u30b9)\u3092\u4e00\u5ea6\u306b\u5373\u7d42\u4e86\u3057\u305f\u3044\u5834\u5408, moveTaskToBack(true) \u3092\u4f7f\u3046\u4ee5\u5916\u306e\u65b9\u6cd5\u3068\u3057\u3066\u6b21\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u30fbAndroidManifest.xml \u3067 &lt;activity android:noHistory=&#8221;true&#8221;&gt; \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066 finish() \u3059\u308b\u3002<br \/>\n\u3000<a href=\"http:\/\/developer.android.com\/guide\/topics\/manifest\/activity-element.html#nohist\">noHistory=&#8221;true&#8221;<\/a>\u3092\u6307\u5b9a\u3057\u3066\u304a\u304f\u3068\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30b9\u30bf\u30c3\u30af\u304c\u306a\u304f\u306a\u308b\u4e8b\u3092\u5229\u7528\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/developer.android.com\/reference\/android\/app\/Activity.html\">Activity<\/a>(developer.android.com)<br \/>\n&nbsp;\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306b\u3064\u3044\u3066\u306a\u3069\u3002<br \/>\n&#8211; <a href=\"https:\/\/sites.google.com\/a\/techdoctranslator.com\/jp\/android\/practices\/ui_guidelines\/activity_task_design\">\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u3068\u30bf\u30b9\u30af\u30c7\u30b6\u30a4\u30f3<\/a> (\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u6280\u8853\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u52dd\u624b\u306b\u7ffb\u8a33)<br \/>\n&#8211; <a href=\"http:\/\/developer.android.com\/guide\/topics\/fundamentals.html\">Application Fundamentals<\/a>(developer.android.com)<br \/>\n&#8211; <a href=\"http:\/\/stackoverflow.com\/questions\/2042222\/android-close-application\">android close application<\/a><br \/>\n&nbsp;Android\u306e\u5f37\u5236\u7d42\u4e86\u306e\u4ed5\u65b9\u306b\u3064\u3044\u3066\u306e\u8b70\u8ad6\u3002\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f 2011\u5e74\u306b\u66f8\u3044\u305f\u300cAndroid \u3067 System.exit() \u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531\u300d\u3092\u30012026\u5e74\u6642\u70b9\u306e Android \u3067\u5b9f\u6e2c\u3057\u76f4\u3057\u305f\u3082\u306e\u3067\u3059\u3002 \u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068\u3001\u4eca\u3067\u3082\u30a2\u30d7\u30ea\u30b3\u30fc\u30c9\u304b\u3089 System &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2011-01-24-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Android \u3067 System.exit() \u3092\u4f7f\u3063\u3066\u306f\u3044\u3051\u306a\u3044\u7406\u7531\u3068\u3001\u7d42\u4e86\u65b9\u6cd5\u306e\u307e\u3068\u3081<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[65,42,12],"class_list":["post-939","post","type-post","status-publish","format-standard","hentry","category-android-dev","tag-android","tag-java","tag-security"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=939"}],"version-history":[{"count":1,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/939\/revisions"}],"predecessor-version":[{"id":1405,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/939\/revisions\/1405"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}