Not application installed use Uri record instead

100 Views Asked by At

I'm creating a simple app to write and read NFC tags but I would like to know if is possible to use the URI record if the application is not install in the device instead of going to app store to look for the application using the AAR?

This is my NdefMessage code:

private NdefMessage getTagAsNdef(String uri) {     
      NdefRecord rtdUriRecord = NdefRecord.createUri(uri);

      return new NdefMessage(new NdefRecord[] { rtdUriRecord,
                    NdefRecord.createApplicationRecord("com.example.nfcapplication")
         });   
}
1

There are 1 best solutions below

3
On

If you write a URI onto the NFC tag, a phone without a dedicated app will open that URI in the browser. Is this what you want to archieve?