What I would like to do is use 4 external hardware buttons to be able to assign 4 different stock apps, on an Android phone to activate.
For example:
I have done Google search’s on this subject and come across many ways to be only control the volume or the media player controls via an external keyboard on USB or Bluetooth.
I have built a couple of HID devices with an Adafruit Trinket and an Arduino Leonardo but the most I can get them to do is control volume, medial play, wake up from screen sleep or put it to sleep based on the key code tables. https://source.android.com/devices/input/keyboard-devices.html
I am guessing (probably stupidly) that the Android framework has a file in it's depth that keeps a log of the touch screen app positions and locations or something similar ,
Any and all help is appreciated, I am great with hardware but not software programming.
For example:
Code:
if Button 1 start Skype
if Button 2 start Media Player
if Button 3 start App X
if Button 4 start App Y
I have built a couple of HID devices with an Adafruit Trinket and an Arduino Leonardo but the most I can get them to do is control volume, medial play, wake up from screen sleep or put it to sleep based on the key code tables. https://source.android.com/devices/input/keyboard-devices.html
I am guessing (probably stupidly) that the Android framework has a file in it's depth that keeps a log of the touch screen app positions and locations or something similar ,
Any and all help is appreciated, I am great with hardware but not software programming.