[태그:] 프로세스


  • 안드로이드 프로그램 종료…

    다른 액티비티 상태에서 종료를 원할때 public class TestMain extends Activity { public static Activity mainAct; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mainAct = TestMain.this; } @Override protected void onDestroy() { ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE); am.restartPackage(getPackageName()); super.onDestroy(); } } public… “read more”