Hi
I need some help to develop and library that to handle Key/Button presses on a specific Android Device. The device is a smart phone that has a panic button on the Top (Physical). The only documentation I have is as follows ;
So, if anyone can help/assist I would be very grateful and would obviously reward such efforts.
Many thanks.
John.
I need some help to develop and library that to handle Key/Button presses on a specific Android Device. The device is a smart phone that has a panic button on the Top (Physical). The only documentation I have is as follows ;
B4X:
// 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:
http://developer.android.com/reference/android/view/KeyEvent.html
So, if anyone can help/assist I would be very grateful and would obviously reward such efforts.
Many thanks.
John.