78714

Android NFC start app (using AAR) and read text

Question:

I have NFC tag with plain text and AAR. When I tap an NFC to the phone, my app will start. But It just call onCreate() method and don't read the plain text. I have to tap again and then app will read the text.

Can I somehow start app when I tap an NFC and at the sametime read the text?

I use this <a href="http://mobile.tutsplus.com/tutorials/android/reading-nfc-tags-with-android/" rel="nofollow">manual</a> for implement NFC function.

Answer1:

To make sure that you also receive the NDEF message, make sure that you have added an Intent filter for the type of message that is on the tag.

Recommend

  • Should an alarm be built with Service or BroadcastReceiver?
  • How to read a mifare 1k card through ACR122U NFC Tag reader connected to local machine in a web appl
  • Different capabilities for the same role [closed]
  • Simple Normalizing Text Example Does Not Work
  • Wordpress Create Category AJAX Response
  • How to create a fast loading wrapping ListBox?
  • OnItemSelectedListener for Spinner that was added programmatically does not trigger
  • Retrieving a contacts notes
  • Installing apk from within application in android
  • How to merge two Request in Laravel
  • Unique SMS sender id?
  • UIBarButtonItem's action is not called when in a view with a UIGestureRecognizer
  • Replace Fragment with another on back button
  • How can I let users share their location in Bot Framework webchat channel?
  • Avoid registering duplicate broadcast receivers in Android
  • Android distinguish between tap and double tap
  • How to get listview position?
  • HttpURLConnection Closing IO Streams
  • How to 'create temp table as select' in Slick?
  • Parsing a CSV string while ignoring commas inside the individual columns
  • Get one-time binding to work for ng-if
  • req.body is undefined - nodejs
  • Volley JsonObjectRequest send headers in GET Request
  • Trying to switch camera back to front but getting exception
  • Symfony2: How to get request parameter
  • Importing jscolor library in angular 2
  • Akka Routing: Reply's send to router ends up as dead letters
  • Is there a mandatory requirement to switch app.yaml?
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • python regex in pyparsing
  • Free memory of cv::Mat loaded using FileStorage API
  • Angular 2 constructor injection vs direct access
  • Change div Background jquery
  • Android Google Maps API OnLocationChanged only called once
  • How does Linux kernel interrupt the application?
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Programmatically clearing map cache
  • Busy indicator not showing up in wpf window [duplicate]
  • Why do underscore prefixed variables exist?
  • How can I use threading to 'tick' a timer to be accessed by other threads?