NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Android device mode
Content is no longer maintained and is being kept for reference only!
Contents
Introduction[edit]
This document discusses the Phone-mode and Table-mode layouts supported with Android 4.0 ICS release.
Displays[edit]
According to the Android CDD the following categories of displays are defined in android:
- small
- medium
- large
Operating mode[edit]
Based on the display dimensions, android selects the mode:
- Tablet-mode for displays with minimum 600 pixel height and width
- Phone mode for all other displays
Differences between Phone mode and Tablet mode[edit]
The following screen shots show the various modes depending on screen size.
TBD |
Tablet mode Beagleboard xm with DVI output configured for 800x600 |
Impact of LCD density[edit]
An LCD panel (say 800x480) can be available in different physical sizes e.g 5-inch or 7-inch. The UI experiance on a 5-inch device may be different compared to the experience on a 7-inch device.
Android introduces the concept of lcd density to compensate for such physical differences. LCD density (dots/inch) is defined as ( formula for dpi goes here).
Android defines the following standard lcd densities:
- mdpi (160)
- ldpi (120)
- hdpi (240)
- xhdpi
Android assumes mdpi display by default unless explicitly overridden by modifying build.prop.
You can change the dpi by adding the following line in /system/build.prop
ro.sf.lcd_density=120
This changes the dpi to 120
Take example of LCD screen of 800x480
with dpi=160 (default) the effective resolution = 800x480
with dpi=120, effective resolution increases by about 30% (160/120 = 1.33) = 1066x640