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
1
vote
1 answer

Why isn't Android Beam/NFC receiving the records that I send?

I've read the documentation a few times now and looked at the example code but I can't seem to figure out what I'm doing wrong. Whenever I put my two devices together I see the Beam screen and tap it, but nothing seems to be sent and none of my…
Hardy
  • 477
  • 9
  • 19
1
vote
1 answer

setNdefPushMessageCallback parameters when called from a fragment

I want to call setNdefMessageCallback in a fragment but I don't know the parameters that I have to pass to that function. I think that it should be the getContext() but it give me a compile error saying that the method setNdefPushMessageCallback…
1
vote
1 answer

NFC Android Beam

Is it possible to read and write data from and to a NFC chip that isn't implemented in an Android device? In the Android docs I can only find the Android Beam possibility but this is only for two Android devices? So I want to install an NFC chip in…
Janine Kroser
  • 444
  • 2
  • 6
  • 23
1
vote
1 answer

Disable Android beam for certain fragments

I need to disable beam and enable on certain fragments. So I have base fragment, vendor fragment and product fragment. In base fragment onResume I call: NfcAdapter adapter =…
DJ-DOO
  • 4,545
  • 15
  • 58
  • 98
1
vote
1 answer

How to send bytes[] by NFC

How can I send raw bytes by NFC P2P. I've got this on sender side: private static NdefRecord createByteRecord(final byte[] b){ final byte[] data = new byte[b.length + 1]; data[0] = (byte) 0x0; System.arraycopy(b, 0, data, 1, b.length); …
Remasky
  • 13
  • 3
1
vote
1 answer

Android Beam and SNEP to pn532

we are trying to send a big file from an android phone to a mikroprocessor via nfc-p2p, android-beam and snep. This is what we have so far. I can connect the pn532(target) with the phone(initiator). My android app uses setNdefPushMessage to send a…
1
vote
0 answers

android beam large file

I want to use Android Beam (large file) for beaming an object to another device. I save the object as Java file and then let it beam. The beam works fine and the file is send to the receiving device. The Problem is so far I wasn’t able to open it on…
freemoser
  • 11
  • 2
1
vote
0 answers

Android Beam: mimetype between different apps

I am working with android beam to send data using NFC between two different apps, I have tested code from different answer, I have changed parameters, etc., and I always obtain the same result: The other device open or try to open the same app in…
impilar
  • 11
  • 5
1
vote
0 answers

NFC Android App acting differently on different phones

I have currently been testing some examples being found on the internet on sending NDEF messages through the NFC on my android phone. I have three phones that I tested the phone with: Samsung Galaxy Nexus (Android 4.4.4), S3 (Android 4.4.2) and S4…
BillyWaz
  • 11
  • 3
1
vote
1 answer

Android NFC: one activity to send and one to receive only

I want my ActivityNFCSender to send an integer to my ActivityNFCReceiver via NFC. The below code works. But there is a problem: when connection is established, BOTH activities display the prompt to send! But I want only the first one to be able to…
Yar
  • 4,543
  • 2
  • 35
  • 42
1
vote
1 answer

NFC on Android Application

I'm developing two applications that use NFC on Android 4.3 for peer-to-peer communication, I have three questions about it. Can NFC on Android exchange data between two applications with only 1 beam? If it can how to do that and if it cannot then…
Bandi Su
  • 125
  • 2
  • 12
1
vote
1 answer

Android Beam - Must Extend Activity?

I am trying to incorporate Android Beam into my app. But, I need to extend another class instead of Activity for my app. When I try doing this: public class SomeClass extends AnotherActivity implements CreateNdefMessageCallback{ Android…
1
vote
2 answers

S Beam takes priority over my NFC app

Hi I have two Samsung galaxy S4. I developed an NFC based android app that will beam simple text to the phone in contact (target phone) when a button is touched on the phone that runs the app(source phone). My problem is that when I run my app on…
Archit Arora
  • 2,508
  • 7
  • 43
  • 69
1
vote
2 answers

Android Beam: share a in-app link with fallback to web version

Is there a way to construct a NdefMessage in such way that: If my app is installed on the receiver device, open the link in it (using a custom URI scheme, for example) If my app isn't installed, open the default web browser with the link to the…
Grishka
  • 2,465
  • 1
  • 20
  • 38
1
vote
0 answers

Android Beam: keep pairing

as far as I've read, android beam uses NFC to establish a BluetoothConnection, then transfers data via bluetooth. It also pairs the devices if necessary. But only until the transfer is complete, then unpairs them automatically. I want to pair the…
El Hocko
  • 2,581
  • 1
  • 13
  • 22