I want to launch My Application when we taps on NFC tag even Phone is Locked same as did in Google Wallet Application.
I tried in following ways :
1) Tap NFC tag to launch my application after pressing Power button - Error :
05-23 22:00:22.949: D/NfcService(32443): EnableDisableDiscoveryTask: enable = false
05-23 22:00:22.964: D/NfcService(32443): NFC-C polling OFF
05-23 22:00:22.996: D/PhoneStatusBar(273): disable: < EXPAND icons alerts TICKER
system_info BACK* HOME* RECENT CLOCK* >
05-23 22:00:23.988: D/NfcService(32443): NFC-EE routing OFF
[10:33:22 AM IST]
2)Tap NFC tag after pressing Power button and now i am able to see Lock/Unlock screen - Error :
05-23 22:03:59.714: D/NfcService(32443): EnableDisableDiscoveryTask: enable = true
05-23 22:03:59.730: D/NfcService(32443): NFC-EE routing OFF
05-23 22:04:03.238: D/NfcService(32443): NFC-C polling ON
If i unlock the screen and Taps on NFC tag everything works fine
How to handle power button and lock/unlock screen in order to Launch my application when phone is Locked?