abhi66 / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Performing pause of activity that is not resumed: #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Not sure

What is the expected output?

Activity starts

What do you see instead?

Activity crashes out

What version of Rokon are you using?

2.01

On which version of Android are you experiencing this?

2.2

Please provide any additional information below.

This started happening for no apparent reason. I was playing around with stuff 
in the engine using the donate app as a starting point. It suddenly started 
throwing this whenever I tried to run it:

06-29 18:35:23.537: ERROR/ActivityThread(6121): Performing pause of activity 
that is not resumed: {com.fede.launcher/com.fede.launcher.Launcher}
06-29 18:35:23.537: ERROR/ActivityThread(6121): java.lang.RuntimeException: 
Performing pause of activity that is not resumed: 
{com.fede.launcher/com.fede.launcher.Launcher}
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.app.ActivityThread.performPauseActivity(ActivityThread.java:3317)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.app.ActivityThread.performPauseActivity(ActivityThread.java:3305)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3288)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.app.ActivityThread.access$2500(ActivityThread.java:125)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.os.Looper.loop(Looper.java:123)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
android.app.ActivityThread.main(ActivityThread.java:4627)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
java.lang.reflect.Method.invokeNative(Native Method)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
java.lang.reflect.Method.invoke(Method.java:521)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
06-29 18:35:23.537: ERROR/ActivityThread(6121):     at 
dalvik.system.NativeStart.main(Native Method)

I can uninstall\reinstall and it still breaks. Even if I revert the activity to 
be identical to the donate app (which still works) I get the error.

Original issue reported on code.google.com by Jor...@gmail.com on 30 Jun 2010 at 1:38

GoogleCodeExporter commented 9 years ago
Ok upon further investigation it seems to do it if you hold the phone in an 
orientation opposite of what the engine is set to force. So landscape in 
forcePortrait or portrait in forceLandscape crashes it out.

This is on moto droid. Forgot to mention that above.

Original comment by Jor...@gmail.com on 30 Jun 2010 at 1:56

GoogleCodeExporter commented 9 years ago
You have to specify the landscape/portrait in the XML file too, and it will 
solve this.

eg,

android:screenOrientation="landscape"

in your <activity>

Original comment by rtaylor205@gmail.com on 2 Jul 2010 at 12:56

GoogleCodeExporter commented 9 years ago

Original comment by rtaylor205@gmail.com on 2 Jul 2010 at 12:57