Najeebullah Shah
Najeebullah Shah

Reputation: 3709

setting of dpi in Oracle VM virtual box

I am testing my android app in Oracle VM Virtual Box, i'm using normal screen mode with dimension 320x480x16.

When i launch the app the layout is correctly fetched from layout-large folder but the images are always fetched from drawable-hdpi. I am newbie to this concept. I have read some article but i am still confused. Can anybody tell me how to change/set the dpi in Oracle VM Virtual Box from the command line?

Upvotes: 1

Views: 1098

Answers (1)

DArkO
DArkO

Reputation: 16110

I don't believe your layout is large. large is used for screens that have about 7 inch displays.

As far as creating an emulator with a specific DPI you can choose the DPI when creating a new emulator with AVD. the emulator control app is located in the SDK folder.

The Hardware option you need is called Abstracted LCD density.

see this to find out a bit more about densities. The default is set to 240 which is a HDPI screen, you can lower it for mdpi or increase it for xhdpi.

Also consider this: a extra large screen like a 10inch tablet (motorolla xoom for example) has a xlarge layout but mdpi density. So in other terms bigger resolution or size doesn't always mean more dense screens.

Upvotes: 1

Related Questions