FileDocCategorySizeDatePackage
ConfigurationInfo.javaAPI DocAndroid 1.5 API4261Wed May 06 22:41:54 BST 2009android.content.pm

ConfigurationInfo

public class ConfigurationInfo extends Object implements android.os.Parcelable
Information 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
reqTouchScreen
The 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
reqKeyboardType
Application'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
reqNavigation
A 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_KEYBOARD
Value for {@link #reqInputFeatures}: if set, indicates that the application requires a hard keyboard
public static final int
INPUT_FEATURE_FIVE_WAY_NAV
Value for {@link #reqInputFeatures}: if set, indicates that the application requires a five way navigation device
public int
reqInputFeatures
Flags 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 intdescribeContents()

        return 0;
    
public java.lang.StringtoString()

        return "ApplicationHardwarePreferences{"
            + Integer.toHexString(System.identityHashCode(this))
            + ", touchscreen = " + reqTouchScreen + "}"
            + ", inputMethod = " + reqKeyboardType + "}"
            + ", navigation = " + reqNavigation + "}"
            + ", reqInputFeatures = " + reqInputFeatures + "}";
    
public voidwriteToParcel(android.os.Parcel dest, int parcelableFlags)

        dest.writeInt(reqTouchScreen);
        dest.writeInt(reqKeyboardType);
        dest.writeInt(reqNavigation);
        dest.writeInt(reqInputFeatures);