I have android barcode scanner with physical keyboard. Is possible on app startup inside onCreate() method detect if some key is pressed and hold down? The idea is that if app is starting and key X
is down then load another configuration. Like safe mode for firefox when shift key is pressed when firefox is starting.
Edit. Use case:
App is starting ( onCreate ).
get default activity from settings. Ex myAct="actA.java"
if key 1 is down then myAct="defaultActivity.java"
startActivityForResult(myAct)