How can I write a URL to a NFC tag so that the link automatically opens on read?
Currently, I am using the following intent:
<activity
android:name="com.myapp.ReadTagActivity"
android:screenOrientation="portrait"
android:label="@string/title_activity_readtag"
android:parentActivityName=".MainActivity">
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/com.myapp" />
</intent-filter>
</activity>
If the write operation enters the URL www.google.com, the read will only display the string. I would like the URL to open in a browser instead. How can I fix this?