Hello.

I want to read from mifare classic 1K but tag always return null.

the manifest file have the following filters:
 <intent-filter>
               <action android:name="android.nfc.action.TECH_DISCOVERED"/>
            </intent-filter>
           
            <meta-data android:name="android.nfc.action.TECH_DISCOVERED"
                android:resource=" <at> xml/nfc_tech_filter" />

and the technology list:
       <tech>android.nfc.tech.NfcA</tech>   
        <tech>android.nfc.tech.Ndef</tech>
         <tech>android.nfc.tech.MifareClassic</tech>

and the read function:

 String action = intent.getAction();
        
        if (NfcAdapter.ACTION_TECH_DISCOVERED.equals(action)) {
                
            Tag tagFromIntent = 
intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);
                                
                        nama = (TextView)findViewById(R.id.temp);
                        Tag tag = 
(Tag)intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);

.....

And tag value always null...

Could you help me ??
Thanks
                        



-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to