java.lang.Object | |
↳ | de.auerswald.functions.Constants |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_KEY_BIND | A Broadcast with the ACTION_KEY_BIND is send in case a key was assigned or removed, and after the boot of the phone. |
|||||||||
String | ACTION_KEY_PRESS | A Broadcast with the ACTION_KEY_PRESS is send in case a key was pressed. |
|||||||||
String | ACTION_SET_LED | The ACTION_SET_LED is used to bind to a Service, which will set a LED according to the given Extras. |
|||||||||
String | CATEGORY_CONFIGURE | CATEGORY used for the mandatory Configuration Activities intent filter
When a key was assigned, the phone system tries to invoke an |
|||||||||
String | EXTRA_BIND | Boolean parameter of the ACTION_BIND Intent, shows if a key was binded or unbinded | |||||||||
String | EXTRA_KEY_ID | General identifier for the used key | |||||||||
String | EXTRA_KEY_LONG_PRESS | boolean parameter that indicates a long press event | |||||||||
String | EXTRA_KEY_NAME | Return value of the ACTION_CONFIGURE Intent, controls the name of the key in the phone | |||||||||
String | EXTRA_LED_COLOR | Int parameter that should contain one of the Constants.LED_COLOR_* elements | |||||||||
String | EXTRA_LED_MODE | Int parameter that should contain one of the Constants.LED_MODE_* elements | |||||||||
int | KEY_INVALID | This constant describes a invalid key_id | |||||||||
int | LED_COLOR_GREEN | Constant for the LED-Color Green | |||||||||
int | LED_COLOR_RED | Constant for the LED-Color Red | |||||||||
int | LED_COLOR_YELLOW | Constant for the LED-Color Yellow | |||||||||
int | LED_MODE_BLINK | Constant that is used to set a LED to Flash | |||||||||
int | LED_MODE_OFF | Constant that is used to disable a LED | |||||||||
int | LED_MODE_ON | Constant that is used to activate a LED |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
A Broadcast with the ACTION_KEY_BIND is send in case a key was assigned or removed, and after the boot of the phone.
EXTRA_KEY_ID: mandatory int field, shows which Key was assigned/removed.A Broadcast with the ACTION_KEY_PRESS is send in case a key was pressed.
EXTRA_KEY_ID: mandatory int field, indicates which Key was pressed.The ACTION_SET_LED is used to bind to a Service, which will set a LED according to the given Extras.
EXTRA_KEY_ID: mandatory int parameter, describes which Key to modifyCATEGORY used for the mandatory Configuration Activities intent filter
When a key was assigned, the phone system tries to invoke an Activity
using an Intent
with the action MAIN and the category KEY_CONFIGURE.
This Activity
is started using startActivityForResult(android.content.Intent, int)
.
If the Activity
returns RESULT_OK
, a bind Intent
is invoked and the connection is ready.
When RESULT_CANCELED
is returned, an unbind Intent
is send and the connection is revoked.
This Intent is supplied to allow the application to configure a mapping from a pressed key to function.
Boolean parameter of the ACTION_BIND Intent, shows if a key was binded or unbinded
General identifier for the used key
boolean parameter that indicates a long press event
Return value of the ACTION_CONFIGURE Intent, controls the name of the key in the phone
Int parameter that should contain one of the Constants.LED_COLOR_* elements
Int parameter that should contain one of the Constants.LED_MODE_* elements
This constant describes a invalid key_id
Constant for the LED-Color Green
Constant for the LED-Color Red
Constant for the LED-Color Yellow
Constant that is used to set a LED to Flash
Constant that is used to disable a LED
Constant that is used to activate a LED