You can restrict launching of your app when the card is brought close  by
mentioning  the Data type as well in the NDEF intent ... i was also facing
the same problem so i included the data field in the NDEF intent  part and
everytihng worked fine .

On Fri, Nov 11, 2011 at 10:27 PM, k0nig <[email protected]> wrote:

> Hello, I'm a begginer in android, I have a NFC App works correctly
> except for one thing, when I close a tag to my phone this suggest
> other app but not mine. I had search about this but don't find a
> solution, my manifest is:
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>      package="leer.Etiqueta"
>      android:versionCode="1"
>      android:versionName="1.0">
>    <uses-sdk android:minSdkVersion="10" />
>    <uses-permission android:name="android.permission.NFC"></uses-
> permission>
>
>    <application android:icon="@drawable/icon" android:label="@string/
> app_name">
>        <activity android:name=".LeerEtiquetaActivity"
>                  android:label="@string/app_name">
>            <intent-filter>
>                <action android:name="android.intent.action.MAIN" />
>                <category
> android:name="android.intent.category.LAUNCHER" />
>            </intent-filter>
>            <intent-filter>
>                <action
> android:name="android.nfc.action.NDEF_DISCOVERED" />
>                <category
> android:name="android.intent.category.DEFAULT" />
>            </intent-filter>
>            <intent-filter>
>                        <action
> android:name="android.nfc.action.TECH_DISCOVERED"/>
>                        </intent-filter>
>                        <intent-filter>
>                        <action
> android:name="android.nfc.action.TAG_DISCOVERED"/>
>                        </intent-filter>
>
>                        <meta-data
> android:name="android.nfc.action.TECH_DISCOVERED"
>                        android:resource="@xml/tecnologia" />
>        </activity>
>    </application>
>    <uses-feature android:name="android.hardware.nfc"
> android:required="true" />
> </manifest>
>
>
> I thought that a TECH_DISCOVERED launch my application but it does not
>
> Thanks.
>
> --
> 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

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