title: Launching NFC when screen is Locked in Android
body: <p>I want to launch My Application when we taps on NFC tag even <strong>Phone is Locked</strong> same as did in <strong>Google Wallet Application</strong>.</p>
  
  <p>I tried in following ways :</p>
  
  <p>1) Tap NFC tag to launch my application after pressing Power button - <strong>Error</strong> :  </p>
  
  <pre><code>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: &lt; EXPAND icons alerts TICKER 
  system_info BACK* HOME* RECENT CLOCK* &gt;
  
  05-23 22:00:23.988: D/NfcService(32443): NFC-EE routing OFF
  [10:33:22 AM IST] 
  </code></pre>
  
  <p>2)Tap NFC tag after pressing Power button and now i am able to see Lock/Unlock screen - <strong>Error</strong> :</p>
  
  <pre><code>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
  </code></pre>
  
  <p><strong>If i unlock the screen and Taps on NFC tag everything works fine</strong></p>
  
  <p>How to handle power button and lock/unlock screen in order to Launch my application when phone is Locked?</p>