简体   繁体   中英

build NFC reader in android application

i cant find simple resource to read an NFC Tag. I have looked at the sample code, in the SDK manager but when i run it, it doesn't read my tag. This is something similar that i am trying to accomplish, here Reading Data from NFC Tag , but i don't know exactly what goes in the manifest file???? any help please! this is what i have in my manifest at the moment.

<uses-permission android:name="android.permission.NFC"/> 

<activity
        android:name="com.test.nfc.TagsActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="android.nfc.action.TAG_DISCOVERED"/>
            <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
            <data android:mimeType="text/plain" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>  

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM