5

I have installed the official Samsung Galaxy S2 skin thanks to another stackoverflow question, in Eclipse.

The problem I have is that it doesn't render my app anywhere near the resolution of the actual device when running in the Emulator, surely this is the point of using the skin.

Please see the screenshots and settings I'm using, where am I going wrong?

Emulator output - API 11

skin output

Emulator output - API 15

enter image description here

Device screenshot

actual device output

AVD settings - automatically generated by the skin

skin settings

Community
  • 1
  • 1
Neil
  • 7,861
  • 4
  • 53
  • 74

3 Answers3

5

Try changing Abstracted LCD density hardware argument from 300 to 218 ppi.

Diego V
  • 6,189
  • 7
  • 40
  • 45
  • YES YES YES - perfect, I edited the hardware.ini file in the skin using 218ppi as suggested. Thank you very much for your persistence and help!! – Neil Sep 14 '12 at 10:38
1

In AVD Manager, select your Galaxy SII emulator, click the "Start..." button and then in the Launch Options dialog configure the display as follows:

Galaxy SII emulator launch configuration

Diego V
  • 6,189
  • 7
  • 40
  • 45
  • Although this does show the "skin" at the exact size as the device, the contents are still the same, it only shows 4 lines in my list and the title is truncated, any more ideas? – Neil Sep 12 '12 at 16:08
1

I see that your AVD target is Android 3.0 but the GUI on your physical device looks different. Make sure to test using an emulator with the same Android version and theme than your real phone.

Diego V
  • 6,189
  • 7
  • 40
  • 45
  • Seems to make no difference, targeting different SDKs is exactly the same result. Also my screen density and dimensions have been the same from Gingerbread up to Ice Cream Sandwich. Therefore the app should always have same dimensions. – Neil Sep 13 '12 at 08:30
  • @Neil: Could you update the AVD screenshot using the same theme as the S2 to see where are the differences more accurately? – Diego V Sep 13 '12 at 12:49
  • I've added a screen shot using API 15, but I still only get 4 rows in my List, its pretty annoying! – Neil Sep 13 '12 at 15:51