I have a Samsung Galaxy S1. The samples most of the times start with blank screen.
I could potentially see the display if I do some cuddle touch like tinkering (AKA unknown pattern of touching). But this also does not work all the time. The task manager tells me its running, but when brought to focus the screen remains blank.
This happens with my application as well. And this seems to be display problem only…as I can print log output to see that my touch is work and my game is running !!
I have seen some posts (outside your forums) where similar problems exist but found no indicative answer.
Any hints atleast as to how to process, as this is outside the realm of my control !!
Also, has anyone observed similar problems while debugging or running ON DEVICE ???
Any help is greatly appreciated !!mkandula2012-05-07 04:01:58
The source of this bug is this…
width = PVRShellGet(prefWidth);
height = PVRShellGet(prefHeight);
In the android SDK these values returned are NOT THE SCREEN SIZES as (atleast) I would expect (as this works in the iOS pretty fine)
They are returning 0 or some extremely high valued number which has no correlation to the screen size.
I replace width and height manually and everything works fine !!
Can Img Tech verify this please ?
My phone is running 2.3.3 samsung galaxy S1 (GT-I9000). kernel version 22.214.171.124-I9000DDJV9-CL312456 Build number GINGERBREAD.DDJV9
Thanks for your files, they demonstrated the problem on our Galaxy S.
As a general rule, due to the order PVRShell performs its setup any of the PVRShellSets that affect the window/api initialisation should go in InitApplication and any PVRShellGets that rely on the window/api being initialised should go in InitView. e.g. To request a window of a certain width and height it should go in InitApplication and if you want to get the actual width and height you should query in InitView.
Thanks for the input Scott !!!