如何重新启动在Android的活动?
问题描述:
在我正在写一个应用程序,有它的一部分,可以让你改变窗帘设置。问题是,该设置将不会生效,直到活动被重新创建。有没有办法告诉应用程序使用onResume()方法来重新启动(希望允许它保存所有在的onSaveInstanceState())?
in an app that I am writing, there is a part of it that allows you to change a curtain setting. the problem is, that this setting won't take effect until the activity is recreated. is there a way to tell the app to restart using the onResume() method (hopefully allowing it to save everything in the onSaveInstanceState())?