So now, i got same problem as before:

06-14 14:16:21.894: INFO/NfcService(7235): Dispatching to override
intent PendingIntent{405801c8: android.os.BinderProxy@40543860}

Nothing else occurs. No entry into the onNewIntent()-method. Currently
the two main activities both are realizing ForegroundDispatch...

On 14 Jun., 13:53, Mark Murphy <[email protected]> wrote:
> 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/commonsguyhttp://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

Reply via email to