On Mon, Sep 24, 2012 at 6:39 PM, android_solutions <[email protected]> wrote: > The logs that I have posted, shows that NFC framework itself is starting > Activity Manager, is this a correct assumption. > 01-08 05:05:59.128: I/ActivityManager(258): START {flg=0x10008000 > cmp=com.android.nfc/.NfcRootActivity (has extras) u=0} from pid 473 > 01-08 05:05:59.312: I/ActivityManager(258): Displayed > com.android.nfc/.TechListChooserActivity: +142ms (total +160ms) > > Please suggest, if anybody has worked on the same.
Looking at NfcDispatcher, it looks like it only matches against activities and launches the chooser if multiple activities are found, and starts the activity directly if there is only one. So doing this from a service is not going to work. You could try creating an activity that passes the tag to a service if you want to this in the background, however it doesn't really make much sense, since the tag can be removed at any time and thus is not really a background operation. The next option is trying to modify Android source to customize how tags are handled. -- 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

