mathiasbc wrote:Hello, first of all thank you very much for the template it has been very useful.
Is there a way to obtain the screen width and height ?, for example, in the template, and in various other examples a fixed width and height is used, can't we get those dimensions according to the device's screen ?
I'm not sure if im bumping an old topic here, but no one answered you so here's how i do it normally.
declare
Using java Syntax Highlighting
public static int CAMERA_WIDTH;
public static int CAMERA_HEIGHT;
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
then in your onLoadEngine
Using java Syntax Highlighting
final Display display = getWindowManager().getDefaultDisplay();
CAMERA_WIDTH = display.getWidth();
CAMERA_HEIGHT = display.getHeight();
Parsed in 0.030 seconds, using
GeSHi 1.0.8.4
Unsure how this would work for live wall paper. but have a play around