Black Screen onResume

1,200 views
Skip to first unread message

Sergey Chernik

unread,
Oct 18, 2012, 8:17:05 AM10/18/12
to andro...@googlegroups.com
Hi! I try to tell your about my problem. A can't find the fix of this problem on another places.
I use Necessitas Alpha4.1 on Kubuntu. 
And I rewrite QtActivity for using project without Ministro. QtActivity copy libs from folder in sdcard to cache  of my project and then read it. And it work! but when my project minimize and then I resume it, my activity has black screen onResume and don't want to work. Please help me! I don't know what to do (

Flavio Portela

unread,
Oct 18, 2012, 11:09:11 PM10/18/12
to andro...@googlegroups.com
I had this problem in Alpha3, to circumvent do:

    @Override
    protected void onPause()
    {
        //super.onPause();
        System.exit(0);
        //QtApplication.invokeDelegate();
    }

It will not solve, but now you do not have black screen.

Sergey Chernik

unread,
Oct 19, 2012, 1:42:01 AM10/19/12
to andro...@googlegroups.com
And if anybody call to you, the project will exit?

Flavio Portela

unread,
Oct 19, 2012, 7:33:07 AM10/19/12
to andro...@googlegroups.com
Yes.

with alpha4 seems to have fixed the problem.

If this is not true, anyone know of another problem like this?

Sergey Chernik

unread,
Oct 21, 2012, 2:23:19 PM10/21/12
to andro...@googlegroups.com
Somebody fix the black screen on resume?
I use alpha 4 and have this problem. I need help!

Andrei Zuse

unread,
Oct 21, 2012, 7:00:49 PM10/21/12
to andro...@googlegroups.com
Hi.

I have the similar problem.

After the device enter in stand-by mode and fell minutes passed, on wake-up the screen the GUI freeze, but the application keep running. After minutes in freeze state, it's back to work.

Another problem is the same reported, occurring on send the application to background for fell minutes, on back the black screen is showed to me.

Sorry my english.
Thanks
Andrei Jiácomo Zuse
Chapecó, Santa Catarina - Brazil

Pritpal Bedi

unread,
Oct 21, 2012, 7:22:52 PM10/21/12
to andro...@googlegroups.com
Hi


Somebody fix the black screen on resume?
I use alpha 4 and have this problem. I need help!

You are talking about real device or emulator ?
On real device, it is fixed. On emulator there is a problem when local libraries are used. If Ministro is used on emulator, appln works fine, no black screen on resume.

How to simulate resume:

1. Execute the application.
2. Tap on Home button, run another appln.
3. Tab on your application icon, you will see  the screen where you left last before action #2.

Pritpal Bedi
a student of software analysis & concepts 

Andrei Zuse

unread,
Oct 21, 2012, 7:26:51 PM10/21/12
to andro...@googlegroups.com
I'm have this problem in real device. 

It's occurred in Samsung Galaxy S and SII, Galaxy S 5" Galaxy Tab and another devices of other companies.

Thanks.
Andrei Jiácomo Zuse

Jorge Barreiro

unread,
Oct 22, 2012, 7:59:39 PM10/22/12
to andro...@googlegroups.com
Hello,

I've found and fixed a "black screen onResume" problem in alpha4.1. I don't know if it's the same problem as yours.

If you open your app, then touch the "home" button to send it to the background, and then you go to the applications menu and launch again your app, you get consistently a black screen, with just the window title with your application name.

This also happend randomly if you open other apps and then you get back to your Qt app.

The problem was that android, instead of given you the already running activity of your Qt app, tried to create a new instance of the QtActivity, which is not supported and gives you just a black screen.

To prevent this you can add the following attribute to your activity declaration in the AndroidManifest.xml file:
android:launchMode="singleInstance".

So the complete activity declaration would be:
<activity android:name="org.kde.necessitas.origo.QtActivity"
          android:configChanges="orientation|locale|fontScale|keyboard|keyboardHidden"
          android:label="@string/app_name"
          android:launchMode="singleInstance">

I haven't made extensive testing, but I haven't got any black screen since then.

Pritpal Bedi

unread,
Oct 22, 2012, 10:03:42 PM10/22/12
to andro...@googlegroups.com
Hi Jorge
I confirm that it fixes the issue, even on emulator, good catch.

jenna

unread,
Oct 22, 2012, 10:26:25 PM10/22/12
to andro...@googlegroups.com
This is 2 of the biggest necessitas bugs that Jorge has provided workarounds for today, as far as I'm concerned.  This change to the xml file has stopped the blackscreen issue for me, as well.  And as far as I'm concerned, this was the biggest issue keeping necessitas from being used on any program that somebody would pay money for.

Sergey Chernik

unread,
Oct 24, 2012, 5:32:12 AM10/24/12
to andro...@googlegroups.com
bug was, but not so often appears

HTC HD2 Android 4.0.3 and Galaxy S Plus 2.3.3

Sergey Chernik

unread,
Oct 29, 2012, 9:25:20 AM10/29/12
to andro...@googlegroups.com
there is still a problem, someone has other ideas?

Sergey Chernik

unread,
Oct 31, 2012, 4:02:45 AM10/31/12
to andro...@googlegroups.com
Anybody have the problem with black screen? I can't fix this problem and need help (

Anjin Lu

unread,
Oct 31, 2012, 8:23:06 AM10/31/12
to andro...@googlegroups.com
Try to use singleInstance for your activity by adding below to the manifest file.
 
android:launchMode="singleInstance"
Anjin

Sergey Chernik

unread,
Nov 1, 2012, 1:11:41 AM11/1/12
to andro...@googlegroups.com


среда, 31 октября 2012 г., 15:23:08 UTC+3 пользователь Anjin написал:
Try to use singleInstance for your activity by adding below to the manifest file.
 
It is not work (

jenna

unread,
Nov 25, 2012, 2:57:13 PM11/25/12
to andro...@googlegroups.com
I've come across another combination of events that leads to a blackscreen on resuming the application, which is not fixed by the aforementioned change to the xml.  I have the superuser app installed on my phone to allow access to the "su" binary for apps.  If I call something like "su -c \"echo hello world\"" near the start of main(), I will get the screen blacking out and asking for permission.  If I press ok or cancel, my application will startup as normal.  However, if I rotate the phone to landscape mode before pressing "ok", my application will stay on blackscreen and never resume.

Can anybody else confirm this?  Or hopefully provide a workaround?
Reply all
Reply to author
Forward
0 new messages