android how to implement procedures for the application to add shortcuts, for example, I would like to turn the camera on this application , you can simply press ctrl + A shortcut to open without having to create a shortcut , and then click on the shortcut ?
------ Solution ---------------------------------------- ----
you use the soft keyboard, press ctrl it?
program inside their own monitor key events of their own to start the corresponding activity bar
------ Solution ---------------------- ----------------------
@ Override
public boolean onKeyDown (int keyCode, KeyEvent event) {
}
This can listen button
android inside KeyEvent.KEYCODE_CAMERA, KeyEvent.KEYCODE_CALL and other events, if it is to write their own programs , you can also define your own key events .
can listen to the key event, start the corresponding activity or service.
------ eference --------------------------------------- < br> how Meirenhuida ah ? Hard?
------ eference --------------------------------------- < br> onkeydown background when no service in this method ,
没有评论:
发表评论