android - How to make an app or specific activity launched when pressing menu button or power button etc (e.g like 3 times)? -


how make activity in specific app(security app) started when pressing (menu or other of device buttons), should do?, i'm have broadcastreceiver in app(to read sms). i'm new android, should start? please me.

edit: in phone(samsung) if press long on menu button 1 of google apps started(launched).

according official android documentation (http://developer.android.com/reference/android/view/keyevent.html#keycode_home): key code constant: home key. key handled framework , never delivered applications.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -