2017-08-13 86 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 
    } 
相關問題