ConfigurationInfopublic class ConfigurationInfo extends Object implements android.os.ParcelableInformation you can retrieve about hardware configuration preferences
declared by an application. This corresponds to information collected from the
AndroidManifest.xml's <uses-configuration> tags. |
Fields Summary |
---|
public int | reqTouchScreenThe kind of touch screen attached to the device.
One of: {@link android.content.res.Configuration#TOUCHSCREEN_NOTOUCH},
{@link android.content.res.Configuration#TOUCHSCREEN_STYLUS},
{@link android.content.res.Configuration#TOUCHSCREEN_FINGER}. | public int | reqKeyboardTypeApplication's input method preference.
One of: {@link android.content.res.Configuration#KEYBOARD_UNDEFINED},
{@link android.content.res.Configuration#KEYBOARD_NOKEYS},
{@link android.content.res.Configuration#KEYBOARD_QWERTY},
{@link android.content.res.Configuration#KEYBOARD_12KEY} | public int | reqNavigationA flag indicating whether any keyboard is available.
one of: {@link android.content.res.Configuration#NAVIGATION_UNDEFINED},
{@link android.content.res.Configuration#NAVIGATION_DPAD},
{@link android.content.res.Configuration#NAVIGATION_TRACKBALL},
{@link android.content.res.Configuration#NAVIGATION_WHEEL} | public static final int | INPUT_FEATURE_HARD_KEYBOARDValue for {@link #reqInputFeatures}: if set, indicates that the application
requires a hard keyboard | public static final int | INPUT_FEATURE_FIVE_WAY_NAVValue for {@link #reqInputFeatures}: if set, indicates that the application
requires a five way navigation device | public int | reqInputFeaturesFlags associated with the input features. Any combination of
{@link #INPUT_FEATURE_HARD_KEYBOARD},
{@link #INPUT_FEATURE_FIVE_WAY_NAV} | public static final Creator | CREATOR |
Constructors Summary |
---|
public ConfigurationInfo()
| public ConfigurationInfo(ConfigurationInfo orig)
reqTouchScreen = orig.reqTouchScreen;
reqKeyboardType = orig.reqKeyboardType;
reqNavigation = orig.reqNavigation;
reqInputFeatures = orig.reqInputFeatures;
| private ConfigurationInfo(android.os.Parcel source)
reqTouchScreen = source.readInt();
reqKeyboardType = source.readInt();
reqNavigation = source.readInt();
reqInputFeatures = source.readInt();
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public java.lang.String | toString()
return "ApplicationHardwarePreferences{"
+ Integer.toHexString(System.identityHashCode(this))
+ ", touchscreen = " + reqTouchScreen + "}"
+ ", inputMethod = " + reqKeyboardType + "}"
+ ", navigation = " + reqNavigation + "}"
+ ", reqInputFeatures = " + reqInputFeatures + "}";
| public void | writeToParcel(android.os.Parcel dest, int parcelableFlags)
dest.writeInt(reqTouchScreen);
dest.writeInt(reqKeyboardType);
dest.writeInt(reqNavigation);
dest.writeInt(reqInputFeatures);
|
|