2017-08-13 58 views

回答

0

很多研究,我能够使用intelliG想法执行此任务后

ApplicationEx app = 

(ApplicationEx)ApplicationManager.getApplication(); // creating an object of ApplicationEx class 

    boolean canRestart = app.isRestartCapable(); // Checking whether able to restart or not 

    if(canRestart) 
    { 
     app.restart(true); // restart 
    } 
相关问题