On Tue, Jun 14, 2011 at 7:27 AM, Ferit T <[email protected]> wrote: > And how is it with external classes which are not implementing the > class Activity.
They are obviously being passed something that responds to enableForegroundDispatch(). > - first i have to detect which activity (activities) really is (are) > on top > - then activate foregroundDispatch on every onNewIntent()... Possibly, but I doubt it. AFAIK, every activity that needs to respond to NFC tags will need to enableForegroundDispatch() in, say, onResume(), and disable in, say, onPause(). Or whatever pair of points on the timeline make sense for your app. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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

