2017-08-13 8 views
0

キャッシュを無効にしてAndroidスタジオをプログラムで再起動する必要がありますか?Android Studioをプログラムで再起動

はいの場合はどうですか?私はintelliGのアイデア使用してこのタスクを実行することができる午前多くの研究の後

答えて

0

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 
    } 
関連する問題