Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8999841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:14:00+00:00 2026-06-16T00:14:00+00:00

I am making a simple Android application. The primary function is, I want to

  • 0

I am making a simple Android application. The primary function is, I want to read in data from an NFC tag. I already have the basic app built (not much more than the Hello World app). I’m using Eclipse. I have the Android Application Record on the tag, and the app successfully launches when my tag is scanned. I’m just not sure how to continue. I need to:

  • In addition to the AAR, have a four digit number stored in the tag.

  • When the tag is scanned, have the app open and the four digit number stored in a local variable (using intent I think?).

Any help appreciated, as well as the simplest code possible that’ll get the job done. This is my first Android app and first time using Java.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:14:01+00:00Added an answer on June 16, 2026 at 12:14 am

    In your launcher Activity you should check the intent type if it is the same as you stored in the tag – getIntent.getType(). Then you can read data from the tag using this code:

    Parcelable[] rawMsgs = intent.getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
    NdefMessage msg = (NdefMessage)rawMsgs[0];
    NdefRecord cardRecord = msg.getRecords()[0];
    String message = new String(cardRecord.getPayload());
    

    If its a number, then you need to parse it from message.
    I hope this helps you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm making this android application, that needs to read data from user-provided CSV
Hi I want to try making a simple application for android phones for which
I'm making a simple 2d game for the android platform, which works perfectly from
I am making an android application in which I have put 10 images and
I am making an Android application that can fetch the new announcements from the
I'm making in house application that download data via xml files from external server.
I'm making a webapp and I'm using jQuery. I've made a simple android application
Im making a simple programm for android, what can add, read and write text
I am making a simple Android Application. This is the XML code: <TextView android:layout_width=wrap_content
I am making a simple Android Application, which consists of only two activities, .Password

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.