Restart Home programmatically
-
02-10-2019 - |
문제
I'm developing on Android. I have to restart home and all its components (widgets, shortcuts, etc..). For example, when we have a Force Close, the home screen restart and reload all its components.
해결책
You should be able to relaunch it ACTION_MAIN and CATEGORY_HOME intent. If you've just killed the app then this should restart it.
다른 팁
I have to restart home and all its components (widgets, shortcuts, etc..).
No, you don't.
For example, when we have a Force Close, the home screen restart and reload all its components.
If you have a "Force Close", you cannot execute code. Hence, what you want is impossible.
제휴하지 않습니다 StackOverflow