2013-07-19 33 views
0

我想知道如何使應用程序重新啓動完全點擊一個首選項 。你能給我一些代碼片段嗎?我會 像書面重新啓動它的偏好是點擊重啓 應用完全完全重新啓動應用程序android

+0

爲什麼你認爲你需要這個? –

+0

只是因爲我需要重新啓動我的應用程序的可能性 –

+0

試試這個。 (在將來使用搜索) [http://stackoverflow.com/questions/2470870/force-application-to-restart-on-first-activity-android/3772987#3772987][1] [1]:http://stackoverflow.com/questions/2470870/force-application-to-restart-on-first-activity-android/3772987#3772987 – Vyacheslav

回答

0

試試這個..

Intent i = new Intent(this, Home.class); 
    i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 
    startActivity(i); 
    finish(); 
相關問題