problems emulatating htc desire (and other phones)

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

problems emulatating htc desire (and other phones)

Postby boxdream77 » Wed Dec 22, 2010 9:47 pm

Hi,

Just made my first android app.

I'm really confused about one thing. How to rightly simulate different android mobile screens with the android sdk.

Im trying to simulate the HTC Desire screen. But ive problems getting my app looking the same in simulated screen (avd) as it does on a real htc desire.

This is the example i am using:

I've got a Samsung Galaxy S phone, and my friend has got a HTC Desire.

When i install my app wht the default HVGA-avd on my pc , it shows exactly as on my samsung galaxy-phone. But the app doesnt show the same on the android-avd compared to the real htc desire phone.

Ive attached in this post 2 links to screendumps, that shows the app on avd(htc desire simulator) and the app on a real htc desire phone.
- http://home.c2i.net/hkhan/real_htc.jpg: this is a screendump with the app running on a real htc desire phone.
- http://home.c2i.net/hkhan/avd_htc.jpg: this is a screendump with the app running on the avd.

In the AVD (htc desire spec) the whole app-screen gets showed, with the button numbers from 1 to 9. But when i run the app on a real htc desire: Only the numbers up to 6 get shown, as in the picture. I dont see what im doing wrong....i need to get the avd similar to the real thing, or else i would not be able to test my app properly.

Ive got my friend to send me his htc-desire specs. this is what we get when he run the app 'tDpiInfo' on our mobiles. Both the htc desire and samsung has got the same specs as following:
Code: Select all
Density:1.5
Density dpi:240dpi
Screen layout size=Normal
Aspect Ratio: long WQVGA,WVGA,FWVGA
Height px: 800px
Width pixels 480px

The only difference between the galaxy and desire i get is:
Desire:
Xdpi: 254 dpi
Ydpi: 254 dpi
screen size: 3.7"

Galaxy:
Xdpi: 234 dpi
Ydpi: 236 dpi
Screen size: 3.7"


I have set my pc monitor resolution to
Code: Select all
Screen resolution: 1366x768
Screen: 15,6" widescreen


I have set the Android AVD for htc desire with the following:
Code: Select all
-WVGA800(480x800) AND HIGH DENSITY(240)
-scale density to real size with: screen size 3.7"
-monitor dpi 100 (screen size 15,6" and Resolution 1366 x 768 for my dell studio 1555)
-scale 0,40.

Any suggestions and help will be very very appriciated. thanx.
boxdream77
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Dec 22, 2010 9:05 pm

Top

Re: problems emulatating htc desire (and other phones)

Postby edm1606 » Tue Jan 04, 2011 11:26 am

Hi, I'm also trying to get HTC Desire AVD... I will try your specs and see the results for mine... :)
edm1606
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Jan 04, 2011 11:23 am

Re: problems emulatating htc desire (and other phones)

Postby iaindownie » Tue Feb 01, 2011 11:01 am

I'm having the same problems too, so look forward to some discussion on this.

Also, is it possible to choose the AVD from a list in Eclipse? Even if I have two or three AVD's created, it always defaults to the 1st in the list, so I am constantly deleting/building eclipse AVD's.

Iain
User avatar
iaindownie
Experienced Developer
Experienced Developer
 
Posts: 84
Joined: Mon Dec 29, 2008 4:08 pm
Location: Thetford, Norfolk, UK

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 7 guests