New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apps don't appear to wake properly out of sleep mode on Android #154
Comments
Comment #1 originally posted by codenameone on 2012-04-15T03:55:57.000Z: I'm guessing something is wrong with out Activity. |
Comment #2 originally posted by codenameone on 2012-04-15T04:53:30.000Z: An update on this one, after entering the issue, I ran the test I described on C1 apps not created by me: All of them seemed to wake fine. The apps of my own that I tested were all created with ResourceEditor, not sure if that might make any difference. Or maybe something in my dev environment? |
Comment #3 originally posted by codenameone on 2012-04-15T04:58:56.000Z: I'm assuming you used the build server, or did you build the application locally? |
Comment #4 originally posted by codenameone on 2012-04-15T05:09:01.000Z: I used the build server, haven't attempted a local build with C1 yet. |
Comment #5 originally posted by codenameone on 2012-04-20T00:26:44.000Z: Just an update here, I observed this same behavior yesterday with Codename One Live on Android, so I guess it's not just the GUI builder apps as I suggested in comment 2. |
Comment #6 originally posted by codenameone on 2012-04-23T12:01:11.000Z: Live is a GUI builder app. I'm not sure how to reproduce this, it used to happen to me ages ago but I can't reproduce it on recent builds |
Comment #7 originally posted by codenameone on 2012-04-23T17:03:08.000Z: On the live app it seems to happen less frequently. I put together an app last night with the latest build that exhibits the same behaviour. I'm curious, are you running on ICS? If not, I can run some tests to see if I see the same behaviour on Android 2.3 devices. I've attached a log capture off the device from the other day. |
Comment #8 originally posted by codenameone on 2012-04-23T17:55:40.000Z: We are on Gingerbread devices (when will Cyanogen move already?). |
Comment #9 originally posted by codenameone on 2012-05-22T23:41:23.000Z: This has happened on device of my customer as well. I'll collect info about the device. Result of this bug looks the same as I reported for some other case: http://code.google.com/p/codenameone/issues/detail?id=191 |
Comment #10 originally posted by codenameone on 2012-05-23T10:05:38.000Z: I was able to 100% reproduce black screen after unlocking phone when a ComboBox is open. Not sure if it is the same case as in current ticket, but I'm submitting it here because the ticket is tagged as 'critical' (bug 191 is not).
D/Codename One( 266): No idea why this throws a Runtime Error (I used a debug build, not sure if it matters for logging) The same error in logs as for bug 191. This problem happens on HTC Wildfire Android 2.2.1 I was trying to reproduce the issue without ComboBox (as originally reported in this ticket) but was not able to. On a regular Form CN1 app resumes after screen lock OK. I guess that the same issue ("requestFeature() must be called before adding content") may happen in other conditions, not only for ComboBox. Other case is bug 191, but there may be other cases too. |
Comment #11 originally posted by codenameone on 2012-05-24T12:41:31.000Z: I think this is now fixed, please help me verify by verifying this. |
Comment #12 originally posted by codenameone on 2012-05-24T19:00:53.000Z: Thanks Chen. I'm haven't found a pattern to reproduce this one on demand, so I'll just watch for it over time. |
Comment #13 originally posted by codenameone on 2012-05-24T19:34:09.000Z: I tested it in Android SDK emulator, and it still reproducible with the same error in logs (the log is attached), unfortunately. |
Comment #14 originally posted by codenameone on 2012-05-24T19:34:54.000Z: The log |
Comment #15 originally posted by codenameone on 2012-05-24T20:18:10.000Z: The exception you see in the log is harmless(I should remove the printStackTrace from there). |
Comment #16 originally posted by codenameone on 2012-05-24T20:26:06.000Z: Sorry I didn't mention it - yes, black screen and the app is not responsible. Only killing the app in app manager allows restarting it. |
Comment #17 originally posted by codenameone on 2012-05-24T20:27:06.000Z: Can you add some more logging so we coukd see that the app is updating with your code? |
Comment #18 originally posted by codenameone on 2012-05-24T20:33:06.000Z: ok, thanks I will give it another try. |
Comment #19 originally posted by codenameone on 2012-05-24T21:09:38.000Z: just checked open long comboboxes on the ICS emulator and it works fine. |
Comment #20 originally posted by codenameone on 2012-05-25T09:18:49.000Z: I rebuilt and tested again on Android 2.2 emulator and HTC Wildfire (Android 2.2.1). Indeed, the issue doesn't happen for short lists in Combobox, but still happens for long lists. I was not able to test on Android 3 or Android 4 emulators - just some problems with SDK installations, they do not run correctly, and I was not able to fix it shortly.
|
Comment #21 originally posted by codenameone on 2012-05-28T07:12:09.000Z: thanks, the bug was reproducible on <= 2.2 I made another fix to resolve this. |
Original issue 154 created by codenameone on 2012-04-15T01:37:05.000Z:
What steps will reproduce the problem?
What is the expected output? What do you see instead?
When you unlock the screen, the CN1 app is locked with a blank screen, have to hit Home button to get out of it, then go to the Settings, Apps, Running, click the app and kill it.
What version of the product are you using? On what operating system?
Eclipse plug-in 1.0.0.201204122346 on Ubuntu 11.10. Android ICS 4.0.1 on Samsung Galaxy Nexus.
Please provide any additional information below.
Been meaning to enter this bug forever, have noticed this behaviour on pretty much every CN1 app.
The text was updated successfully, but these errors were encountered: