2
사용자가 스키닝 옵션을 수정할 수있는 환경 설정 활동이 있습니다. 사용자가 스키닝 옵션을 수정하는 경우 drawable이 제대로 다시로드 될 수 있도록 활동 (startActivity()를 현재 의도와 함께 finish())을 호출하여 다시로드해야합니다.활동을 강제로 강제로 종료하고 스택에 남아있게하려면 어떻게합니까?
기본 활동이 시작될 때마다 일시 중지가 아닌 현재 활동이 강제로 중단 될 수 있으면 훨씬 쉽고 훨씬 안정적입니다.
어떻게하면이 아이디어를 얻을 수 있습니까? 선명도
업데이트 :
이현재 동작 :
1. Activity A starts
2. User selects Settings command
3. Preference Activity starts
4. Activity A is paused
5. User changes preferences
6. Preference Activity is paused and destroyed
7. Activity A is unpaused
8. Activity A must check if preferences were changed
- If yes, call startActivity() to start itself
again and call finish(). This will reload everything
correctly
원하는 동작 (BOLD의 차이) :
1. Activity A starts
2. User selects Settings command
3. Preference Activity starts
4. Activity A is paused AND DESTROYED
5. User changes preferences
6. Preference Activity is paused and destroyed
7. Activity A STARTS AGAIN FRESH
건배, 돼지