android-beam

NFC Android App acting differently on different phones

心已入冬 提交于 2019-12-13 17:44:46
问题 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 (Android 4.4.4). The app works perfect the way I wanted it to on the GN (it sends the message), however on the S3 and the S4 it sends the package name of the app instead of the message. Can anybody help me with this? Does anyone know why or how to

Can i write an app which sends file (can be an image file) to another device using NFC Android Beam that does't has the same app installed?

六月ゝ 毕业季﹏ 提交于 2019-12-12 06:19:20
问题 I can send file using below API via NFC Android Beam mNfcAdapter.setBeamPushUrisCallback() Do the other device should also have the same app to receive the file? If Yes then sending this file would not support for other platform like Blackberry even though they are NFC capable device. Please advice. 回答1: The file transfer implementation does not require the receiving device to have your application. If you send something like a picture, a mime-type will be broadcast when the user clicks the

Launch app via NFC and send a NDEF message back when started

↘锁芯ラ 提交于 2019-12-11 07:43:01
问题 I'm developing an Android app which interacts with other devices using NFC. This interaction consists of 2 steps basically: When the device receives a specific URI by NFC from other device, the app is launched. When the app starts, it sends a NDEF message back to the other device. For the first step, I have added the following lines to the AndroidManifest.xml file. That way, the MainActivity will be launched when the device receives a URI of type myprotocol:something : <intent-filter> <action

Touch to Beam, the only way to send NFC (ICS)?

谁说胖子不能爱 提交于 2019-12-10 14:55:00
问题 I know you answered a similar question on ICS here: https://stackoverflow.com/a/8320504 But there is something i still would like to know, because I'm working on my master thesis and therefore I would need this feature: Is it still true, that there is no possibility sending NFC from within an app without tap on the screen? (as it was shown in the StickyNotes sample in "How to NFC") Will this great feature of NFC be available again in the future? Is it true, that by disabling AndroidBeam in

NFC Peer2Peer Mode - Android Beam - ISO 18092

元气小坏坏 提交于 2019-12-10 13:55:49
问题 I need to find out how in Android Beam the P2P mode is managed. I found some general information about P2P: There is an active P2P mode (not recommended by NFC Forum) and a passive one (recommended by NFC Forum) where the passive device works like a smartcard (card emulation mode). I also know that an NFC reader device does usually the following steps: Field on Check for a card or a P2P passive device If found then communicate with the device, if not then field off Field off Check for

Android Beam - payload transfer from both devices when only one Touch To Beam?

青春壹個敷衍的年華 提交于 2019-12-06 17:21:28
问题 Ok, I watched the Google I/O from 2011 presentation on NFC on peer to peer. The demo was done on Gingerbread and using the application Sticky Notes found Now in this demo, both device the onNewIntent() was called at the same time so both devices are trying to share information to one another. On ICS and above, you have Android Beam.. With Android Beam, you have to touch to trigger the onNewIntent() event that will send the NDef message across. Now the problem with this is that now to trigger

Disable Android Beam for selected activities

北战南征 提交于 2019-12-06 11:19:36
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 vibrates but the "Touch to beam" screen doesn't appear and the other phone doesn't receive anything. EDIT: Calling: NfcAdapter.setNdefPushMessage(NdefMessage message, Activity activity, Activity... activities) in onResume() with a null message should do the trick (the doc says: "Pass a null NDEF message to disable foreground NDEF push in the specified

Android Beam - fallback when my app is not installed

微笑、不失礼 提交于 2019-12-05 07:59:03
问题 I've had a play with the Android Beam sample code and have it working with two devices, sending a string of text. However, if the recipient doesn't have the app installed, my tag is simply collected for use at a later date. It is possible in some way to take the user to the Android Market if my app is not installed, and to process the data in the intent if it is installed? 回答1: There is a piece of commented code in the Beam sample that already has the application record set up for you. Just

Android Beam - payload transfer from both devices when only one Touch To Beam?

不羁的心 提交于 2019-12-04 21:54:08
Ok, I watched the Google I/O from 2011 presentation on NFC on peer to peer. The demo was done on Gingerbread and using the application Sticky Notes found Now in this demo, both device the onNewIntent() was called at the same time so both devices are trying to share information to one another. On ICS and above, you have Android Beam.. With Android Beam, you have to touch to trigger the onNewIntent() event that will send the NDef message across. Now the problem with this is that now to trigger the onNewIntent() on both devices, both user on each device has to "Touch To Beam" at the same time. Is

How to a send SNEP GET request from Android

ε祈祈猫儿з 提交于 2019-12-04 18:44:05
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 receives a SNEP PUT request. I would send a GET request but I can find only examples that use Android built in NDEF system without specifing PUT or GET request. How can I package and send a SNEP GET request from my Android device to an ACR122U? Short answer: You can't. The Android API does not allow you to implement custom LLCP services. The only