On Mon, Sep 24, 2012 at 5:24 PM, android_solutions
<[email protected]> wrote:
> Hi
> I am using NFC for Tag reading / Writing capability, I want to make a
> library service, which will run in background to listen to the NDEF or Tag
> related intents.
> Is it possible to design application, where Service would listen to the NDEF
> intents and not activity, using Broadcast Receivers, provided that I cannot
> use onNewIntent() and onResume() for intent discovery.

Did you try it? Unless there are some additional checks in place, it should
work since you are simply getting an intent, and if you have the proper filters
your service should receive it. However, you cannot intercept all NFC events,
since activities using foreground dispatch have priority if they register for
the same tech, etc.

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