Android 4.4.2 - java.lang.RuntimeException: Performing stop of activity that is not resumed

来源:互联网 发布:淘宝 管控 临时下架 编辑:程序博客网 时间:2024/06/08 22:21

http://stackoverflow.com/questions/21947675/android-4-4-2-java-lang-runtimeexception-performing-stop-of-activity-that-is/23246159#23246159


That doesn't seem right to me. The splash activity would now be the top activity in the stack, so the HomeActivity onStop lifecycle method would get called eventually. Coincidentally, I moved the startActivity call for the splash activity from onCreate to onResume in the HomeActivity, and the error goes away.

shareimprove this answer

1 0