|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.system.HardwareCapabilities
public final class HardwareCapabilities
HardwareCapabilities is a list of string keys used to make queries about various device capabilities.
Each query returns either null for an unknown key or a semicolon delimeted list of key value pairs. For example:
String s = HardwareCapabilities.get(HardwareCapabilities.SCREEN);
Might return:
color_space=RGB16_BGR;width=240;height=160
| Field Summary | |
|---|---|
static String |
BACK_BUTTON
Deprecated. Use FEATURE_BACK_BUTTON instead. |
static String |
CAMERA
Deprecated. Use cameraCaptureFormat(),
FEATURE_CAMERA,
FEATURE_CAMERA_REMOVABLE,
FEATURE_CAMERA_CAN_FLIP,
FEATURE_CAMERA_FLASH,
FEATURE_CAMERA_LOW_LIGHT_MODE,
and FEATURE_CAMERA_IS_LED_FLASH instead. |
static String |
CANCEL_BUTTON
Deprecated. Use FEATURE_CANCEL_BUTTON instead. |
static String |
DONE_BUTTON
Deprecated. Use FEATURE_DONE_BUTTON instead. |
static String |
END_BUTTON
Deprecated. Use FEATURE_END_BUTTON instead. |
static String |
EXTERNAL_MICROPHONE
Deprecated. Use FEATURE_EXTERNAL_MIC instead. |
static int |
FEATURE_BACK_BUTTON
Can be used as argument to hasFeature(int), to determine if
the device has a back button. |
static int |
FEATURE_BATTERY_COVER_SENSOR
Can be used as argument to hasFeature(int), to determine if
the device has a sensor to detect whether the battery cover is off. |
static int |
FEATURE_BLUETOOTH
Can be used as argument to hasFeature(int), to determine if
the device supports Bluetooth |
static int |
FEATURE_BLUETOOTH_AUDIO
Can be used as argument to hasFeature(int), to determine if
the device supports Bluetooth audio routing. |
static int |
FEATURE_CAMERA
Can be used as argument to hasFeature(int), to determine if
the device has a camera. |
static int |
FEATURE_CAMERA_CAN_DETECT_FLUORESECENT_HZ
Can be used as argument to hasFeature(int), to determine if
the camera can automatically detect the frequency of fluourescent
lights and adjust accordingly. |
static int |
FEATURE_CAMERA_CAN_FLIP
Can be used as argument to hasFeature(int), to determine if
the camera can flip. |
static int |
FEATURE_CAMERA_CAN_SHARPEN
Can be used as argument to hasFeature(int), to determine if
the camera supports sharpness. |
static int |
FEATURE_CAMERA_FLASH
Can be used as argument to hasFeature(int), to determine if
the device has a camera flash. |
static int |
FEATURE_CAMERA_IS_LED_FLASH
Can be used as argument to hasFeature(int), to determine if
the camera flash is an LED flash. |
static int |
FEATURE_CAMERA_LOW_LIGHT_MODE
Can be used as argument to hasFeature(int), to determine if
the camera has a low light mode. |
static int |
FEATURE_CAMERA_REMOVABLE
Can be used as argument to hasFeature(int), to determine if
the device has a removable camera. |
static int |
FEATURE_CANCEL_BUTTON
Can be used as argument to hasFeature(int), to determine if
the device has a cancel button. |
static int |
FEATURE_DIALPAD_OVERLAY
Can be used as argument to hasFeature(int), to determine if
the device has a dial pad overlay. |
static int |
FEATURE_DISPLAY_REQUIRES_REFRESH
Can be used as argument to hasFeature(int), to determine if
the display must be actively refreshed. |
static int |
FEATURE_DISPLAY_SWIVELS
Can be used as argument to hasFeature(int), to determine if
the display flips to reveal the keyboard. |
static int |
FEATURE_DONE_BUTTON
Can be used as argument to hasFeature(int), to determine if
the device has a done button. |
static int |
FEATURE_DPAD
Can be used as argument to hasFeature(int), to determine if
the device has a dpad. |
static int |
FEATURE_DPAD_LED
Can be used as argument to hasFeature(int), to determine if
the DPAD has an LED. |
static int |
FEATURE_END_BUTTON
Can be used as argument to hasFeature(int), to determine if
the device has an end button. |
static int |
FEATURE_EXTERNAL_MIC
Can be used as argument to hasFeature(int), to determine if
the device has an external microphone. |
static int |
FEATURE_EXTERNAL_POWER_BUTTON
Can be used as argument to hasFeature(int), to determine if
the device has an external power button. |
static int |
FEATURE_GREEN_POWER_KEY
Can be used as argument to hasFeature(int), to determine if
the device has a green power key. |
static int |
FEATURE_HOT_SWAPPABLE_MEDIA
Can be used as argument to hasFeature(int), to determine if
the device supports hot-swappable media. |
static int |
FEATURE_LIGHT_METER
Can be used as argument to hasFeature(int), to determine if
the device has a light meter. |
static int |
FEATURE_MONO_HEADSET
Can be used as argument to hasFeature(int), to determine if
the device supports mono headsets. |
static int |
FEATURE_MOOD_LIGHTS
Can be used as argument to hasFeature(int), to determine if
the device has mood lights. |
static int |
FEATURE_ORANGE_DEL_KEY
Can be used as argument to hasFeature(int), to determine if
the delete key is orange. |
static int |
FEATURE_READABLE_WITH_BACKLIGHT_OFF
Can be used as argument to hasFeature(int), to determine if
the display is readable with the backlight off. |
static int |
FEATURE_REMOVABLE_BATTERY
Can be used as argument to hasFeature(int), to determine if
the device has a removable battery. |
static int |
FEATURE_REMOVE_SIM_WHILE_RUNNING
Can be used as argument to hasFeature(int), to determine if
the SIM can be removed from the device without powering down. |
static int |
FEATURE_SD_CARD
Can be used as argument to hasFeature(int), to determine if
the device has an SD card slot |
static int |
FEATURE_SEND_BUTTON
Can be used as argument to hasFeature(int), to determine if
the device has a send button. |
static int |
FEATURE_SHOULDER_BUTTONS
Can be used as argument to hasFeature(int), to determine if
the device has shoulder buttons. |
static int |
FEATURE_SPEAKER_PHONE
Can be used as argument to hasFeature(int), to determine if
the device has a speaker phone. |
static int |
FEATURE_STEREO_HEADSET
Can be used as argument to hasFeature(int), to determine if
the device supports stereo headsets. |
static int |
FEATURE_SYM_KEY
Can be used as argument to hasFeature(int), to determine if
the device has a Sym key. |
static int |
FEATURE_TAB_KEY
Can be used as argument to hasFeature(int), to determine if
the device has a tab key. |
static int |
FEATURE_TRACKBALL
Can be used as argument to hasFeature(int), to determine if
the device has a trackball. |
static int |
FEATURE_TRACKBALL_LED
Can be used as argument to hasFeature(int), to determine if
the trackball has an LED. |
static int |
FEATURE_VOLUME_BUTTONS
Can be used as argument to hasFeature(int), to determine if
the device has volume buttons. |
static int |
FEATURE_WHEEL
Can be used as argument to hasFeature(int), to determine if
the device has a wheel. |
static String |
FLASH
Deprecated. For internal use only. |
static String |
KEYBOARD
Deprecated. Use FEATURE_DIALPAD_OVERLAY, FEATURE_TAB_KEY,
FEATURE_ORANGE_DEL_KEY, and FEATURE_SYM_KEY instead. |
static String |
LIGHT_METER
Deprecated. Use FEATURE_LIGHT_METER instead. |
static String |
POWER_BUTTON
Deprecated. Use FEATURE_EXTERNAL_POWER_BUTTON instead. |
static String |
RAM
Deprecated. For internal use only. |
static String |
REMOVABLE_BATTERY
Deprecated. Use FEATURE_REMOVABLE_BATTERY instead. |
static String |
REMOVE_SIM_WHILE_RUNNING
Deprecated. Use FEATURE_REMOVE_SIM_WHILE_RUNNING instead. |
static String |
SCREEN
Deprecated. Use getScreenWidth(), getScreenHeight(), and
getScreenColorSpace() instead. |
static String |
SEND_BUTTON
Deprecated. Use FEATURE_SEND_BUTTON instead. |
static String |
SHOULDER_BUTTONS
Deprecated. Use FEATURE_SHOULDER_BUTTONS instead. |
static String |
SPEAKER
Deprecated. Use getSpeakerType() instead. |
static String |
SPEAKER_PHONE
Deprecated. Use FEATURE_SPEAKER_PHONE instead. |
static String |
VOLUME_BUTTONS
Deprecated. Use FEATURE_VOLUME_BUTTONS instead. |
| Method Summary | |
|---|---|
static String |
cameraCaptureFormat()
Get the camera's capture format. |
protected static void |
determineCapabilities()
Deprecated. For internal use only. |
static void |
dumpCapabilities()
|
static String |
get(String key)
Deprecated. Use hasFeature(int) instead. |
static int |
getScreenColorSpace()
Get the device screen's color space. |
static int |
getScreenHeight()
Get the device screen's height, in pixels. |
static int |
getScreenPhysicalHeight()
Get the device screen's height, in micrometers |
static int |
getScreenPhysicalWidth()
Get the device screen's width, in micrometers |
static int |
getScreenWidth()
Get the device screen's width, in pixels. |
static boolean |
hasFeature(int feature)
Determine if the device supports the specified feature |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FEATURE_CANCEL_BUTTON
hasFeature(int), to determine if
the device has a cancel button.
public static final int FEATURE_DONE_BUTTON
hasFeature(int), to determine if
the device has a done button.
public static final int FEATURE_BACK_BUTTON
hasFeature(int), to determine if
the device has a back button.
public static final int FEATURE_VOLUME_BUTTONS
hasFeature(int), to determine if
the device has volume buttons.
public static final int FEATURE_SEND_BUTTON
hasFeature(int), to determine if
the device has a send button.
public static final int FEATURE_END_BUTTON
hasFeature(int), to determine if
the device has an end button.
public static final int FEATURE_WHEEL
hasFeature(int), to determine if
the device has a wheel.
public static final int FEATURE_TRACKBALL
hasFeature(int), to determine if
the device has a trackball.
public static final int FEATURE_DPAD
hasFeature(int), to determine if
the device has a dpad.
public static final int FEATURE_SHOULDER_BUTTONS
hasFeature(int), to determine if
the device has shoulder buttons.
public static final int FEATURE_EXTERNAL_POWER_BUTTON
hasFeature(int), to determine if
the device has an external power button.
public static final int FEATURE_TAB_KEY
hasFeature(int), to determine if
the device has a tab key.
public static final int FEATURE_SYM_KEY
hasFeature(int), to determine if
the device has a Sym key.
public static final int FEATURE_ORANGE_DEL_KEY
hasFeature(int), to determine if
the delete key is orange.
public static final int FEATURE_GREEN_POWER_KEY
hasFeature(int), to determine if
the device has a green power key.
public static final int FEATURE_DIALPAD_OVERLAY
hasFeature(int), to determine if
the device has a dial pad overlay.
public static final int FEATURE_SPEAKER_PHONE
hasFeature(int), to determine if
the device has a speaker phone.
public static final int FEATURE_EXTERNAL_MIC
hasFeature(int), to determine if
the device has an external microphone.
public static final int FEATURE_CAMERA_REMOVABLE
hasFeature(int), to determine if
the device has a removable camera.
public static final int FEATURE_CAMERA_CAN_FLIP
hasFeature(int), to determine if
the camera can flip.
public static final int FEATURE_CAMERA_FLASH
hasFeature(int), to determine if
the device has a camera flash.
public static final int FEATURE_CAMERA_LOW_LIGHT_MODE
hasFeature(int), to determine if
the camera has a low light mode.
public static final int FEATURE_BLUETOOTH
hasFeature(int), to determine if
the device supports Bluetooth
public static final int FEATURE_SD_CARD
hasFeature(int), to determine if
the device has an SD card slot
public static final int FEATURE_BLUETOOTH_AUDIO
hasFeature(int), to determine if
the device supports Bluetooth audio routing.
public static final int FEATURE_REMOVE_SIM_WHILE_RUNNING
hasFeature(int), to determine if
the SIM can be removed from the device without powering down.
public static final int FEATURE_REMOVABLE_BATTERY
hasFeature(int), to determine if
the device has a removable battery.
public static final int FEATURE_CAMERA
hasFeature(int), to determine if
the device has a camera.
public static final int FEATURE_LIGHT_METER
hasFeature(int), to determine if
the device has a light meter.
public static final int FEATURE_STEREO_HEADSET
hasFeature(int), to determine if
the device supports stereo headsets.
public static final int FEATURE_CAMERA_IS_LED_FLASH
hasFeature(int), to determine if
the camera flash is an LED flash.
public static final int FEATURE_READABLE_WITH_BACKLIGHT_OFF
hasFeature(int), to determine if
the display is readable with the backlight off.
public static final int FEATURE_DISPLAY_SWIVELS
hasFeature(int), to determine if
the display flips to reveal the keyboard.
public static final int FEATURE_HOT_SWAPPABLE_MEDIA
hasFeature(int), to determine if
the device supports hot-swappable media. This means that the
user can change the media card without removing the battery.
public static final int FEATURE_CAMERA_CAN_SHARPEN
hasFeature(int), to determine if
the camera supports sharpness.
public static final int FEATURE_DISPLAY_REQUIRES_REFRESH
hasFeature(int), to determine if
the display must be actively refreshed.
public static final int FEATURE_MOOD_LIGHTS
hasFeature(int), to determine if
the device has mood lights.
public static final int FEATURE_BATTERY_COVER_SENSOR
hasFeature(int), to determine if
the device has a sensor to detect whether the battery cover is off.
public static final int FEATURE_DPAD_LED
hasFeature(int), to determine if
the DPAD has an LED.
public static final int FEATURE_TRACKBALL_LED
hasFeature(int), to determine if
the trackball has an LED.
public static final int FEATURE_MONO_HEADSET
hasFeature(int), to determine if
the device supports mono headsets.
public static final int FEATURE_CAMERA_CAN_DETECT_FLUORESECENT_HZ
hasFeature(int), to determine if
the camera can automatically detect the frequency of fluourescent
lights and adjust accordingly.
public static final String SCREEN
getScreenWidth(), getScreenHeight(), and
getScreenColorSpace() instead.public static final String FLASH
public static final String RAM
public static final String CANCEL_BUTTON
FEATURE_CANCEL_BUTTON instead.public static final String BACK_BUTTON
FEATURE_BACK_BUTTON instead.public static final String DONE_BUTTON
FEATURE_DONE_BUTTON instead.public static final String SEND_BUTTON
FEATURE_SEND_BUTTON instead.public static final String END_BUTTON
FEATURE_END_BUTTON instead.public static final String VOLUME_BUTTONS
FEATURE_VOLUME_BUTTONS instead.public static final String SPEAKER
getSpeakerType() instead.public static final String SPEAKER_PHONE
FEATURE_SPEAKER_PHONE instead.public static final String EXTERNAL_MICROPHONE
FEATURE_EXTERNAL_MIC instead.public static final String KEYBOARD
FEATURE_DIALPAD_OVERLAY, FEATURE_TAB_KEY,
FEATURE_ORANGE_DEL_KEY, and FEATURE_SYM_KEY instead.public static final String SHOULDER_BUTTONS
FEATURE_SHOULDER_BUTTONS instead.public static final String POWER_BUTTON
FEATURE_EXTERNAL_POWER_BUTTON instead.public static final String CAMERA
cameraCaptureFormat(),
FEATURE_CAMERA,
FEATURE_CAMERA_REMOVABLE,
FEATURE_CAMERA_CAN_FLIP,
FEATURE_CAMERA_FLASH,
FEATURE_CAMERA_LOW_LIGHT_MODE,
and FEATURE_CAMERA_IS_LED_FLASH instead.public static final String REMOVE_SIM_WHILE_RUNNING
FEATURE_REMOVE_SIM_WHILE_RUNNING instead.public static final String REMOVABLE_BATTERY
FEATURE_REMOVABLE_BATTERY instead.public static final String LIGHT_METER
FEATURE_LIGHT_METER instead.| Method Detail |
|---|
public static String get(String key)
hasFeature(int) instead.
public static final int getScreenWidth()
public static final int getScreenHeight()
public static final int getScreenPhysicalWidth()
public static final int getScreenPhysicalHeight()
public static final int getScreenColorSpace()
ColorSpace.
public static final boolean hasFeature(int feature)
feature - one of the following:
FEATURE_CANCEL_BUTTON,
FEATURE_DONE_BUTTON,
FEATURE_BACK_BUTTON,
FEATURE_VOLUME_BUTTONS,
FEATURE_SEND_BUTTON,
FEATURE_END_BUTTON,
FEATURE_WHEEL,
FEATURE_TRACKBALL,
FEATURE_DPAD,
FEATURE_SHOULDER_BUTTONS,
FEATURE_EXTERNAL_POWER_BUTTON,
FEATURE_TAB_KEY,
FEATURE_SYM_KEY,
FEATURE_ORANGE_DEL_KEY,
FEATURE_GREEN_POWER_KEY,
FEATURE_DIALPAD_OVERLAY,
FEATURE_SPEAKER_PHONE,
FEATURE_EXTERNAL_MIC,
FEATURE_CAMERA,
FEATURE_CAMERA_REMOVABLE,
FEATURE_CAMERA_CAN_FLIP,
FEATURE_CAMERA_FLASH,
FEATURE_CAMERA_LOW_LIGHT_MODE,
FEATURE_CAMERA_CAN_SHARPEN,
FEATURE_CAMERA_CAN_DETECT_FLUORESECENT_HZ,
FEATURE_BLUETOOTH,
FEATURE_BLUETOOTH_AUDIO,
FEATURE_SD_CARD,
FEATURE_REMOVE_SIM_WHILE_RUNNING,
FEATURE_REMOVABLE_BATTERY,
FEATURE_LIGHT_METER,
FEATURE_STEREO_HEADSET,
FEATURE_MONO_HEADSET,
FEATURE_CAMERA_IS_LED_FLASH,
FEATURE_READABLE_WITH_BACKLIGHT_OFF,
FEATURE_DISPLAY_SWIVELS,
FEATURE_HOT_SWAPPABLE_MEDIA,
FEATURE_DISPLAY_REQUIRES_REFRESH,
FEATURE_MOOD_LIGHTS,
FEATURE_BATTERY_COVER_SENSOR,
FEATURE_DPAD_LED.
FEATURE_TRACKBALL_LED.public static final String cameraCaptureFormat()
protected static final void determineCapabilities()
public static final void dumpCapabilities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||