Android: How do I temporarily handle an Intent in a different activity of my application?

前端 未结 1 1372
忘了有多久
忘了有多久 2020-12-22 06:16

I am developing an application that is NFC-aware. Today I have an intent-filter in my manifest for handling NFC \"bumps\" that have NDEF records:



        
相关标签:
1条回答
  • 2020-12-22 07:05

    While your activity (either "view" or "select an item") is in the foreground, you can use the foreground dispatch to detect new tags. See the NfcAdapter's enableForegroundDispatch() method. An activity that is registered with the foreground dispatch will take precedence over intent filter's in the app manifests.

    0 讨论(0)
提交回复
热议问题