Hallo,

since Android 2.3.3 the tag dispatching mechanism has changed to allow
more complex NFC use-cases. While the demo application should still
work if no other app picks up the tag, the pre-install "Tags"
application will already pick up most (if not all) tags with higher
priority. See http://developer.android.com/reference/android/nfc/Tag.html
for the priority of Tag dispatching mechanisms.

So you should use at least ACTION_TECH_DISCOVERED. To follow the NFC-
idea of dispatching applications, it would be even better to base your
application on NDEF messages and trigger your application only for you
specific messages.

br,
Michael


On Mar 4, 4:57 pm, Bhaban N <[email protected]> wrote:
> Is that possible to detect a nfc tag by just using
> <activity android:name="TagViewer"
> android:theme="@android:style/Theme.NoTitleBar">
>             <intent-filter>
>                 <action android:name="android.nfc.action.TAG_DISCOVERED" />
>                 <category android:name="android.intent.category.DEFAULT" />
>             </intent-filter>
>
> on my manifest file.
>
> I was running the nfc demo without fake one.
> It installed well but doesn't run the program when a tag is detect.
>
> please suggest me.
>
> regards

-- 
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

Reply via email to