NFC. Start a activity when scanning NDEF message

前端 未结 2 1011
清歌不尽
清歌不尽 2021-01-07 10:51

I\'m trying to start a activity when my smartphone scans an NDEF message. This is my manifest:




        
2条回答
  •  天涯浪人
    2021-01-07 11:16

    The manifest looks pretty much ok I think. Maybe you can try adding

    android:exported="true"

    to the activity that should receive the NFC-scanning intent.

        
            
                
                
                
            
        
    

    Are you using a NFC-tag to scan from?

提交回复
热议问题