tags:

views:

44

answers:

3

I have the mobile page displayed fine in iPhone with the meta element set.

It also work fine in HTC G1 and G2 phone without the above meta tag.

However, it is totally screwed up when displayed on the HTC Droid phone such as Motorola Droid.

Does anyone know that what parameters I should set to display it properly? I have the background image with 320X480 which is the exact size of device resolution (320X480).

A: 

The Droid is 480 x 854 :)

roundhill
+1  A: 

DISPLAY SIZE 3.7-in.; WVGA (480 x 854 pixels); 16:9 widescreen

to ensure that, You will get the display Size and orientation of your device.

final Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
int Screenwidth = display.getWidth();
int Screenheight = display.getHeight();
int Screenorientation = display.getOrientation();
Jorgesys
A: 

I was coding a simple webpage with MS ASP. So I don't have the access to the java Code listed above. It is just HTML/CSS/JavScripts. My image is 320X480 and with two section of the centered text paragraphs. Does anyone know any special attributes/tag so as to display the webpage properly on HTC Droid Phone?

joe