Setting the screen size and density

The Runtime for APK supports different screen sizes.

Depending on the display selected for your implementation, you may want to change the default APK Runtime screen appearance by changing the screen density.

To change the default screen density, in the APK configuration file:
set the configuration parameter setprop ro.sf.lcd_density to the desired screen density, in pixels per inch. For example, the following configuration sets the screen density to medium density (approximately 160 pixels per inch):
setprop ro.sf.lcd_density 160                  
The table below lists supported screen densities and the corresponding configuration value.
Screen size Value
LDPI (low density) 120
MDPI (medium density) 160
HDPI (high density) 240
XDPI (extra-high density 320