Android 关闭程序代码

    Intent startMain = new Intent(Intent.ACTION_MAIN);
    startMain.addCategory(Intent.CATEGORY_HOME);
    startMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActsivity(startMain);
     
     System.exit(EXIT);
     android.os.Process.killProcess(android.os.Process.myPid());

     getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

  //隐藏标题

posted @ 2011-06-01 17:38  天添  阅读(516)  评论(0)    收藏  举报