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

  • SEARCH
  • Home
  • 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 8036985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:47:28+00:00 2026-06-05T02:47:28+00:00

According to this answer , and validated by testing, when you use Android Beam

  • 0

According to this answer, and validated by testing, when you use Android Beam to push over an NFC message containing an AAR record, the receiving device will start the MAIN/LAUNCHER activity for the app specified in the AAR.

That MAIN/LAUNCHER Intent does not contain the NfcAdapter.EXTRA_NDEF_MESSAGES extra. Hence, the data that we went through all the trouble to beam over appears to be lost if you use AAR.

Is there some way to get the NFC messages that triggered the app to be started in this scenario?

And if the answer is “no”, then what is the use case of AAR? I can see where it might be helpful when the desired app does not exist on the receiving device (brings up Play Store), but then once the app is installed, AAR foils any attempt to deliver data from one device to the other, which is kinda the point behind NFC.

Thanks!

  • 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-05T02:47:30+00:00Added an answer on June 5, 2026 at 2:47 am

    At the risk of answering my own question, one recipe for getting this to work (apparently) is:

    • Have the Beam sender use an NFC message with two NFC records, the first containing something for a unique MIME type, the second being the AAR

    • Have the Beam recipient have an <intent-filter> on the activity that responds to the first NFC record, such as via:

          <intent-filter>
              <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
      
              <category android:name="android.intent.category.DEFAULT"/>
      
              <data android:mimeType="application/vnd.commonsware.webbeam"/>
          </intent-filter>
      

    If the app already exists, the NDEF_DISCOVERED Intent will be used, and the recipient can pick up the NFC message and pull out the data from the initial record. If the app does not exist, the AAR will kick in, bringing up the Play Store (whether your app is distributed through the Play Store or not).

    This is the recipe shown in the Android Beam example on the developer site.

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

Sidebar

Related Questions

According to this answer or the android's documentation there is several ways to get
According to this answer , it is better to use the $.ajax() function: $('.showprayer').click(
According to this answer , I can make C++ mode think that underscores are
According to this answer: urllib2 read to Unicode I have to get the content-type
According to this answer on another question, the Collapsed event of a ContextMenu is
According to this answer here: Getter and Setter? The following function should work, however
According to this answer ,it should print all function names: [root@ test]# cat hw.c
So, according to this answer , C++ doesn't support variadic macros, and the C++
So I have compiled a python script with py2exe according to this answer .
According to this answer , the intended way to include non-header-only parts of Boost

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.