Hi,

Yes, I have the onNewIntent method declared as you said.

@Override
    public void onNewIntent(Intent intent) {
    Log.d(TAG, "------------> On New Intent");
}

The problem is that i don´t get the message.


On 9 abr, 09:34, nadam <[email protected]> wrote:
> Make sure onNewIntent is overridden correctly. Should look like this:
>
> @Override
> public void onNewIntent(Intentintent) {
>     ...
>
> }
>
> On 8 Apr, 16:11, Gorka <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am trying to read NFC tags with my Nexus S mobile.
>
> > In my Manifest file I have theintentfiltered:
>
> >          <intent-filter>
> >                 <action
> > android:name="android.nfc.action.NDEF_DISCOVERED"/
>
> >                         <data android:mimeType="*/*" />
>
> >                  <category
> > android:name="android.intent.category.DEFAULT"/>
> >         </intent-filter>
>
> > When the mobile detects a tag and theintentis created by the system,
> > my application is started. So, the filter works fine.
>
> > The problem is that, once the application is opened viaIntent, if the
> > mobile detects another NDEF_DISCOVERED the application doesnot
> > receive it.
>
> > I have implemented the onNewIntent method, but it isnotcalled. I
> > also have added the android:launchMode="singleTop" line to my
> > activity.
>
> > Does anyone know can I solve my problem?
>
> > Thanks and bye.

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