Alex Rivera | Logout

PhoneGap - Keyboard makes the screen go black and flickery for some time on Samsung Galaxy Tab 10.1

Asked 2011-11-08T04:42:52.790
15

I am developing mobile apps using HTML5 & CSS3 using PhoneGap. My problem is that whenever I touch a textbox on my webpage running on the Samsung Galaxy Tab 10.1 (Android v3.1), it shows the keyboard but the page goes black for a fraction of second. At times, it flickers for a while showing black background and then restores itself.

I even tried with a simple page with a single input type="text" and it even happens with the same.

Anybody faced a similar issue and have had a fix for it?

Any help is much appreciated.

Thanks.

UPDATE 1:

As I said above, the black flickering even happens with the app containing a simple page with a single text box. Following is the code:

<!DOCTYPE html>
<html>
    <head>
        <title> Flickering Problem </title>
        <style>
            html, body{
                -webkit-backface-visibility: hidden;
                overflow: hidden;
                -webkit-transform: translate3d(0,0,0); 
            }
        </style>
    </head>
    <body>
        <input type="text" width="200px" height="100px" />
    </body>
</html>

I tested this on my Android tablet, and the flickering was as with a full fledged web page. I tried adding certain CSS attributes suggested here on SO for similar problem which claimed to solve, but did actually help.

It is worth noting that the black flickering is happening whenever we try to enter any text in the textbox, and I am currently not doing any animation(s) / transitions using CSS3.

Edit
Report

1 Answer

0

     I had a same problem on Samsung Galaxy Tab 10.1 like yours.While I upgraded android version from 3.1 to 4.0.3(using Cyanogenmod 9.0 nightly build 20120302) and without any code change, the problem was solved on my device.

    So I guess that it's an issue of webview component on Galaxy Tab android version.

answered 2012-03-15T02:09:18.833

Your Answer