Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » Resume drawing issue on Android

This thread is locked; no one can reply to it. rss feed Print
Resume drawing issue on Android
seibelj
Member #16,618
January 2017

I am seeing an issue on a Samsung Galaxy Tab T230 tablet, where after backgrounding the app for a while, you come back in and the screen is blank. I am properly acknowledging the halt / resume calls. When you go out and come back quickly, everything works properly and you can see the logs showing the halt / resume flow working.

When you background it for a while, you see the blank screen. This does not seem to happen on my Nexus 5 phone.

Let me know if I am doing something wrong. I know Samsung heavily modifies the Android kernel, and some things could be non-standard. Essentially I'm just listening for the halt and resume, stopping / starting drawing, and acknowledging.

Elias
Member #358
May 2000

Does your activity have these config changes set in the manifest? There's an open bug currently which makes Allegro require them.

android:configChanges="screenLayout|uiMode|orientation|screenSize"

--
"Either help out or stop whining" - Evert

seibelj
Member #16,618
January 2017

Yeah, I have these:

<activity android:name="com.j[...]"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="landscape"
android:configChanges="screenLayout|uiMode|orientation|screenSize"

Elias
Member #358
May 2000

Can't think of anything obvious then. Which version of Allegro are you using?

--
"Either help out or stop whining" - Evert

seibelj
Member #16,618
January 2017

I installed all the updates on the device, and I haven't seen it since. Perhaps it was fixed in an OS update. I'll keep an eye out for it happening again.

Go to: