Rotation and black screen problems, again

1,769 views
Skip to first unread message

İsmail Dönmez

unread,
Feb 25, 2011, 9:15:44 AM2/25/11
to andro...@googlegroups.com
Hi;

Once again I'm seeing black screens or half-black screen when the device is rotated (manually via setPreferredOrientation). In most cases its just a refresh problem, if you click the black part it repaints correctly. Any help about this is appreciated.

Regards,
ismail

Sergey A. Galin

unread,
Feb 25, 2011, 9:54:10 AM2/25/11
to android-qt
Hi,
Well, guess what I'll tell you?!
Maybe someone could help adapting QtAndroidCore+Lite system into
BogDan's repo? I really don't have any spare time at the moment, and
when I'll get back to Qt the next things I'll be working on will be
some improvements in our plugin.

--
Regards,
Sergey

İsmail Dönmez

unread,
Feb 25, 2011, 9:56:54 AM2/25/11
to andro...@googlegroups.com, Sergey A. Galin
Hi Sergey;

Hope about identifying the problem and fixing the "sw" plugin instead? :-)

Regards,
ismail
 

BogDan Vatra

unread,
Feb 27, 2011, 11:07:48 AM2/27/11
to andro...@googlegroups.com
Hi İsmail,

I'm trying for two days to reproduce this issue but without any
luck. Can you please try to reproduce it for me (PLEASE be sure you
are using android-lighthouse which contains
9ce722249d29c57524b02fabc27f6d00e4854759 version).
I need the full application log when the screen goes black, PLEASE
make sure you don't touch the screen, I need the log BEFORE it goes
normal and also, the log AFTER the screen is repainted.

Cheers,
BogDan.

2011/2/25 İsmail Dönmez <ism...@namtrac.org>:

İsmail Dönmez

unread,
Feb 28, 2011, 4:02:13 AM2/28/11
to andro...@googlegroups.com, BogDan Vatra
Hi;

I can still reproduce this. normal-log.txt  is up to the point screen rotates twice first it goes to portrait and then landscape. black-after.txt is the log for going landscape to portrait. repaint.txt is the log for repainting. And in the portrait mode screen is half black.

So it is something like this

Landscape (Default) -> Portrait (App starts) -> Landscape (Book reading mode in our app) -> Portrait (Browse mode for our app) and the screen is half black now.
Regards,
ismail
normal-log.txt
black-after.txt
repaint.txt

İsmail Dönmez

unread,
Feb 28, 2011, 4:05:21 AM2/28/11
to andro...@googlegroups.com, BogDan Vatra
Also note that I rotate the device via JNI with the following function:

    @SuppressWarnings("unused")
        private static void changeOrientation(final int orientation)
        {   
            runAction(new Runnable() {
                    @Override
                    public void run() {
                        m_mainActivity.setRequestedOrientation(orientation);
                    }   
                }); 
        }   

Regards,
ismail
Reply all
Reply to author
Forward
0 new messages