Questions tagged [android-beam]

Android Beam is a feature introduced in Ice Cream Sandwich that allows a device to push an NDEF message or larger files onto another device by physically tapping the devices together. NFC peer-to-peer mode and the Simple NDEF Exchange Protocol are used to initiate the communication.

The Android Beam™ feature allows a device to push an NDEF message or even larger files onto another device by physically tapping the devices together.

NFC peer-to-peer mode and the NFC Forum Simple NDEF Exchange Protocol (SNEP) are used to initiate the communication. This provides an easier way to establish the communication channel for data exchange than other wireless technologies like Bluetooth, that require manual device discovery or pairing. The connection is automatically started when two devices come into range. Android Beam is available through a set of NFC APIs, so any application can transmit information between devices. For example, the Contacts, Browser, and YouTube applications use Android Beam to share contacts, web pages, and videos with other devices.

See the Android NFC API Guide for further information.

143 questions
3
votes
1 answer

Is there an Android Beam failure callback

I am trying to build an NFC enabled application that transmits data to another device via Android Beam (pushing a NDEFMessage). While I know there is a success callback void onNdefPushComplete(NfcEvent event), I can't find a failure callback, which…
The Mighty Rubber Duck
  • 4,388
  • 5
  • 28
  • 27
3
votes
1 answer

Communicate two Android phones with NFC without Android Beam

I am working with NFC in Android. I have done things with NFC tags and Android Beam, but I am wondering if is possible to communicate two Android phones with NFC without Android Beam. I mean, I want to transfer some information, like a text or a URL…
Alexrs95
  • 392
  • 1
  • 3
  • 13
3
votes
1 answer

Android Beam failed when the length of transferring data is out of range

I just implemented an Android Beam project to transfer text data from Nexus S to a NFC card reader, by using the callback CreateNdefMessageCallback and creating the NdefMessage in createNdefMessage(NfcEvent event) method. Everything is OK at first,…
April Wang
  • 81
  • 2
2
votes
2 answers

Disable Android Beam for selected activities

I'm working with NFC on Android, specifically with Android Beam. My question is: is it possible to disable Android Beam support for an activity? This is what some system applications do, such as messaging: if another phone is put close, my phone…
Venator85
  • 10,245
  • 7
  • 42
  • 57
2
votes
1 answer

Stay in current activity upon NFC reception

I have an application that seems to work fine and can transmit data via NFC perfectly well. I have a main activity, an activity to transmit the data, and a different activity to receive data. The sender activity works great, but when the receiver…
Alex Collette
  • 1,664
  • 13
  • 26
2
votes
1 answer

Receiving intent action MAIN instead of NDEF message

I am developing an app with NFC. I was working with an example in which sending and receiving data was carried by the same Activity. Now I need to move sending to the other one and for some reason receing doesn't work anymore. Here is my…
2
votes
0 answers

Send 2 files with Android Beam and open specific app on receiving device

I want to send a text file and an image file from one device to another using Android Beam. When the transfer is complete I want the receiving device to start a specific app that can import these two files. This is how I got it to work using an NDEF…
muetzenflo
  • 5,653
  • 4
  • 41
  • 82
2
votes
1 answer

How do I activate NFC without a readable/writable device nearby?

For an engineering project I need to basically trick my phone to come out of NFC searching mode and into a mode where the phone is continuously putting out energy. Obviously I have activated NFC in the settings, but the only way I can trick it into…
Marko
  • 21
  • 1
2
votes
1 answer

Is there a way to check when two NFC enabled Android devices go out of range?

After I transfered data between two Android devices using Android Beam, I am looking for a way to be notified when these devices go out of range.
2
votes
1 answer

how to send plain text only using nfc android beam

I'm using Eclipse-Android and creating an application that is supposed to send plain text using this code: EDIT: private void write(String text, Tag tag) throws IOException, FormatException { NdefRecord[] records = { createTextRecord(text,…
jaspher chloe
  • 509
  • 5
  • 15
2
votes
2 answers

Launch Specific App when NFC is discovered

I am using NFC in my app and it is working fine. However I want to make sure that only my app is launched and no other App is there to handle the intent. Following is the code for it in my Manifest file:
programmerboy
  • 341
  • 5
  • 15
2
votes
1 answer

Android Beam: How to Beam Contents being Downloaded

I am developing an applicaiton which supports content delivery via Android Beam (to be more accurate, supporting an NFC-initiated content transfer using Bluetooth). I'm using the well-known APIs available through NfcAdapter class,…
Kevin Ghaboosi
  • 606
  • 10
  • 20
2
votes
0 answers

Send text/html file that Android will automatically open in a browser?

I'd like to send and trigger opening of an HTML page via NFC/Android Beam in the way that's compatible with stock Android devices (and ideally any NFC-compliant smartphone). I'd like this to work off-line, so I'm trying to send actual HTML payload…
Kornel
  • 97,764
  • 37
  • 219
  • 309
2
votes
0 answers

Android Beam sound plays even though NFC is disabled

In our app we have a specific activity that the user is supposed to go to transmit some data that they enter on another screen. I use this meta attribute in the manifest file to disable nfc in all activities
bio595
  • 446
  • 2
  • 4
  • 11
2
votes
1 answer

Android Beam: Is there any callback or error code if receiver is not authorised

I am developing an Android application which uses Beam to send custom message to another device. If my application is present on both the devices then it works fine. But if it is not present at the receiver end then still at the sender I get…
1 2
3
9 10