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
2
votes
1 answer

Android Beam ContentProvider Uri fails

Am trying to beam a content provider uri using setBeamPushUrisCallback from galaxy nexus (running 4.2.1) to nexus7 (running 4.2). Both the devices have the app installed, but the transfer fails during the NFC handover to bluetooth, the exception I…
2
votes
1 answer

Sending large files with Android Beam (or S-Beam)

I've been tasked with adding support to an app for beaming large data files (tens of megabytes) from device to device via 'NFC' on Android. I'm aware that genuine NFC on Android is painfully slow, but I know that ICS has support for doing hand-off…
David Given
  • 13,277
  • 9
  • 76
  • 123
2
votes
1 answer

Simulate NFC tag on an Android phone

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 use a Android Phone like a NFC tag. One problem about it is that when I put near the two phones, Android Beams starts. Also, I…
Alexrs95
  • 392
  • 1
  • 3
  • 13
2
votes
1 answer

Disable Android Beam conditionally

This question is pretty much a duplicate but the linked issue was never really resolved and the thread is a few months old so I didn't want to resurrect it. The default behavior of apps running on an ICS device with Android Beam turned on is to push…
zienkikk
  • 2,404
  • 1
  • 21
  • 28
2
votes
1 answer

Android Beam: suppress "Tab to beam"

I have been developing an Android application which sends NDEF messages via Android Beam and a desktop application which receives them. Everything works as expected; however, I personally believe that the Android Beam "Tab to beam"-screen is too…
user970470
2
votes
1 answer

Android NFC both ways

using ICS 4.0.1 ( will be willing to upgrade to 4.0.3) (will not root and rewrite android OS) is there anyway to send a NDEF message back to an android phone after receiving an android beam phone A beams: "hello phone B" phone B reply: "hello phone…
Lawrence L
  • 31
  • 3
1
vote
3 answers

How to get the content of running applications in Android?

I want to make a application that has similar function as Android Beam, but the question is how to get the content of those running apps. For example, if the web browser, Youtube and Google Map is running, how do I get the web address, the video…
John
  • 11
  • 1
1
vote
1 answer

Send Android Beam with URI data

I'm trying to implement Android Beam in an app that will not be distributed through Market. There is a one-to-one correspondence between my app's activities and pages in a particular web page. The behavior I would like is for it to attempt to open…
keyboardr
  • 841
  • 1
  • 8
  • 20
1
vote
1 answer

NFC interaction between Android devices triggers Android Beam instead of HCE

I'm developing payment terminal simulator that acts as a standalone POS terminal. It works ok with chip contactless cards (it can communicate with them on proper protocol), initiate transaction, read data from them etc. I also wanted to handle…
krzykol
  • 25
  • 5
1
vote
1 answer

Get notified when NDEF is sent / touch to beam is pressed

I am using setNdefPushMessageCallback to send an NDEF message (text/plain) through Android Beam (TM) from one Android device to another one. In onResume I am checking ACTION_NDEF_DISCOVERED so in this way the Android phone that is detecting/reciving…
Ilir V. Gruda
  • 1,562
  • 5
  • 17
  • 23
1
vote
0 answers

Can't send EXTRA_STREAM intent with android beam

So I am creating an app based around sending files with an android beam, and it worked earlier with my Sony Xperia z3. But now with my new Oneplus 6, It doesn't seem to send any kinds of files with an android beam. This is my code: File file = new…
1
vote
1 answer

How to detect a NFC P2P event

Android allows you to prepare NFC push messages using either NfcAdapter.setPushMessage or NfcAdapter.setPushMessageCallback. My understanding is that after setting the push message or callback, the message will be sent on the next NFC event (such as…
1
vote
0 answers

Android: Disable Android Beam / NFC file transfer permanently

I want to disable the Android Beam and S Beam permanently. Is there a way to keep the toggle off in the settings of nfc permanently or remove the nfc file sharing capability somehow? My tablet is Samsung Galaxy Tab Active and it is rooted.
dimalukas
  • 11
  • 3
1
vote
0 answers

Exchange strings via NFC (Android Beam) between two Android devices

I'm trying to implement a nfc-p2p comunication Android app. I'd want to exchange strings between two devices at the same time. Starting from this post #25963691 I've found that the easy way is to use the method android.nfc.NfcAdapter.invokeBeam() to…
Anchor
  • 133
  • 1
  • 1
  • 7
1
vote
1 answer

How to a send SNEP GET request from Android

I have an NFC reader ACS ACR122U and I want to send data from my Android phone to it. I have found many examples on how to connect my two devices in P2P mode and how to send data from my phone to the ACR122U, but my desktop server (ACR122U) always…
firegloves
  • 5,581
  • 2
  • 29
  • 50