Hello,

I am new to android development and currently building a nfc reader for 
wear. The problem I am facing is with the function  --- 
"adapter.enableForegroundDispatch(activity, 
pendingIntent, filters, techList)". Whenever I am running my code it is 
throwing "unsupported exception" on OnResume method. (The same piece of 
code works perfectly fine with the phone )

>From what i have understood, in order to detect a tag the application needs 
to be in the foreground which is done by the above function. Since its 
failing here so my pending intent is null and no tag is getting detected. 
If someone could guide me the way it would be really helpful. I have looked 
over internet regarding the wear development and could not get much help 
regarding nfc development.

-- 
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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/54e4eb3c-3361-4c42-a499-09eded608b92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to