Make sure onNewIntent is overridden correctly. Should look like this:

@Override
public void onNewIntent(Intent intent) {
    ...
}

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 the intent filtered:
>
>          <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 the intent is created by the system,
> my application is started. So, the filter works fine.
>
> The problem is that, once the application is opened via Intent, if the
> mobile detects another NDEF_DISCOVERED the application does not
> receive it.
>
> I have implemented the onNewIntent method, but it is not called. 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