Hi All
We are looking at an android device that has bespoke hardware on it. The company say that have an API to hook into it. We are not Java Developers so some help would be grateful with this project.
The are two events that occur. Button Down and Button up. The following is from their API PDF ;
[STARTS]
// BW Add for SOS/PTT Key Start
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_PTTDOWN = "com.BrighterWirelessMain.Main.PTTDown";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_PTTUP = "com.BrighterWirelessMain.Main.PTTUp";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_SOSDOWN = "com.BrighterWirelessMain.Main.SOSDown";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_SOSUP = "com.BrighterWirelessMain.Main.SOSUp";
// BW Add for SOS/PTT Key end
Please note: @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_EXT_PTTDOWN = "com.BrighterWirelessMain.Main.PTTDown"; @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_EXT_PTTUP = "com.BrighterWirelessMain.Main.PTTUp";
Both the PTT up and PTT down intent are useful.
int
ACTION_DOWN
getAction() value: the key has been pressed down.
int
ACTION_UP
getAction() value: the key has been released.
Please refer to the following link for more information:
KeyEvent | Android Developers
[ENDS]
We would like to create a B4A lib that gets the Key events and the raise the corresponding event for our B4a app so we can intercept the KEY UP and KEY DOWN events.
Regards
John.
We are looking at an android device that has bespoke hardware on it. The company say that have an API to hook into it. We are not Java Developers so some help would be grateful with this project.
The are two events that occur. Button Down and Button up. The following is from their API PDF ;
[STARTS]
// BW Add for SOS/PTT Key Start
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_PTTDOWN = "com.BrighterWirelessMain.Main.PTTDown";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_PTTUP = "com.BrighterWirelessMain.Main.PTTUp";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_SOSDOWN = "com.BrighterWirelessMain.Main.SOSDown";
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_EXT_SOSUP = "com.BrighterWirelessMain.Main.SOSUp";
// BW Add for SOS/PTT Key end
Please note: @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_EXT_PTTDOWN = "com.BrighterWirelessMain.Main.PTTDown"; @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_EXT_PTTUP = "com.BrighterWirelessMain.Main.PTTUp";
Both the PTT up and PTT down intent are useful.
int
ACTION_DOWN
getAction() value: the key has been pressed down.
int
ACTION_UP
getAction() value: the key has been released.
Please refer to the following link for more information:
KeyEvent | Android Developers
[ENDS]
We would like to create a B4A lib that gets the Key events and the raise the corresponding event for our B4a app so we can intercept the KEY UP and KEY DOWN events.
Regards
John.