本文整理了Java中java.lang.System.runFinalizersOnExit()
方法的一些代码示例,展示了System.runFinalizersOnExit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。System.runFinalizersOnExit()
方法的具体详情如下:
包路径:java.lang.System
类名称:System
方法名:runFinalizersOnExit
[英]Ensures that, when the VM is about to exit, all objects are finalized. Note that all finalization which occurs when the system is exiting is performed after all running threads have been terminated.
[中]确保在VM即将退出时,所有对象都已完成。请注意,系统退出时发生的所有终结都是在所有正在运行的线程终止后执行的。
代码示例来源:origin: fengjiachun/Jupiter
@SuppressWarnings("deprecation")
public static void runFinalizersOnExit(boolean value) {
System.runFinalizersOnExit(value);
}
代码示例来源:origin: fengjiachun/Jupiter
@SuppressWarnings("deprecation")
public static void runFinalizersOnExit(boolean value) {
System.runFinalizersOnExit(value);
}
代码示例来源:origin: stackoverflow.com
public void onDestroy() {
super.onDestroy();
/*
* Notify the system to finalize and collect all objects of the
* application on exit so that the process running the application can
* be killed by the system without causing issues. NOTE: If this is set
* to true then the process will not be killed until all of its threads
* have closed.
*/
System.runFinalizersOnExit(true);
/*
* Force the system to close the application down completely instead of
* retaining it in the background. The process that runs the application
* will be killed. The application will be completely created as a new
* application in a new process if the user starts the application
* again.
*/
System.exit(0);
}
代码示例来源:origin: stackoverflow.com
System.runFinalizersOnExit(true);
代码示例来源:origin: org.jupiter-rpc/jupiter-flightexec
@SuppressWarnings("deprecation")
public static void runFinalizersOnExit(boolean value) {
System.runFinalizersOnExit(value);
}
代码示例来源:origin: org.jupiter-rpc/jupiter-all
@SuppressWarnings("deprecation")
public static void runFinalizersOnExit(boolean value) {
System.runFinalizersOnExit(value);
}
代码示例来源:origin: stackoverflow.com
android.os.Process.killProcess(android.os.Process.myPid());
System.runFinalizersOnExit(true);
代码示例来源:origin: stackoverflow.com
@Override
public void onDestroy()
{
super.onDestroy();
// Force the process to be killed on finish(), not kept around
System.runFinalizersOnExit(true);
System.exit(0);
}
代码示例来源:origin: stackoverflow.com
@Override
public void finish() {
System.out.println("finish activity");
SaveData();
System.runFinalizersOnExit(true) ;
super.finish();
android.os.Process.killProcess(android.os.Process.myPid());
}
代码示例来源:origin: stackoverflow.com
public static void killApp() {
//Notify the system to finalize and collect all objects of the app.
System.runFinalizersOnExit(true);
//Force the system to close the app down completely.
System.exit(0);
}
代码示例来源:origin: stackoverflow.com
@Override
protected void onDestroy() {
super.onDestroy();
System.runFinalizersOnExit(true);
System.exit(0);
}
代码示例来源:origin: stackoverflow.com
@SuppressWarnings("deprecation")
@Override
public void onDestroy()
{
super.onDestroy();
System.runFinalizersOnExit(true);
System.exit(0);
}
代码示例来源:origin: stackoverflow.com
public void exit(View v){
System.runFinalizersOnExit(true);
System.exit(0);
}
代码示例来源:origin: stackoverflow.com
System.runFinalizersOnExit(true);
System.exit(0);
android.os.Process.killProcess(android.os.Process.myPid());
代码示例来源:origin: stackoverflow.com
java.lang.System.runFinalizersOnExit(true)
java.lang.System.exit(0)
代码示例来源:origin: stackoverflow.com
if (first_run) {
Log.w(TAG, AppHelper.FIRST_RUN);
PendingIntent intent = PendingIntent.getActivity(this.getBaseContext(), 0, (new Intent(getIntent())).addCategory(Intent.CATEGORY_LAUNCHER), Intent.FLAG_ACTIVITY_NEW_TASK);
AlarmManager mgr = (AlarmManager)this.getSystemService(Context.ALARM_SERVICE);
mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 1000, intent);
System.runFinalizersOnExit(true);
System.exit(2);
return;
}
代码示例来源:origin: ELynx/pokemon-go-xposed-mitm
public void onDestroy() {
Log.d("SplashActivity onDestroy: ");
super.onDestroy();
if (dialogCancelled) {
System.runFinalizersOnExit(true);
System.exit(0);
}
}
代码示例来源:origin: stackoverflow.com
System.runFinalizersOnExit(true);
System.exit(0);
代码示例来源:origin: stackoverflow.com
System.runFinalizersOnExit(true);
System.exit(0);
代码示例来源:origin: apps4av/avare
System.runFinalizersOnExit(true);
System.exit(0);
内容来源于网络,如有侵权,请联系作者删除!