Is it possible to enable NFC for only one activity in android for an NFC enabled application?
I've read this, Reading NFC tags only from a particuar activity
But the devices are still scanning for tags on all activities of the application.
EDIT:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.nfccheckout" >
<uses-feature
android:name="android.hardware.nfc"
android:required="true" />
<uses-permission android:name="android.permission.NFC" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".activities.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.ReceiveActivity"
android:label="@string/title_activity_receive" >
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/json+com.example.nfccheckout" />
</intent-filter>
</activity>
<activity
android:name=".activities.CreatePayloadActivity"
android:label="@string/title_activity_create_payload" >
</activity>
<activity
android:name=".activities.ConfirmationActivity"
android:label="@string/title_activity_confirmation" >
</activity>
</application>
</manifest>