android-beam

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

北战南征 提交于 2019-12-02 12:03:39
问题 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 of the bulk data transfer to Bluetooth; and Samsung have a proprietary mechanism for doing the same via Wifi Direct (S-Beam). So that's the approach I'd want to take. Unfortunately I cannot find any information on how to actually do this. I've

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

杀马特。学长 韩版系。学妹 提交于 2019-12-02 06:14:32
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 of the bulk data transfer to Bluetooth; and Samsung have a proprietary mechanism for doing the same via Wifi Direct (S-Beam). So that's the approach I'd want to take. Unfortunately I cannot find any information on how to actually do this. I've looked at the Android Beam documentation, and there's no mention of special mechanisms to support large bulk

Launch Specific App when NFC is discovered

微笑、不失礼 提交于 2019-12-02 04:44:44
问题 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: <activity android:name="com.mypackage.name.BeamActivity"> <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> </activity> I have another sample app on

Launch Specific App when NFC is discovered

匆匆过客 提交于 2019-12-01 22:46:09
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: <activity android:name="com.mypackage.name.BeamActivity"> <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> </activity> I have another sample app on my phone which is detecting NFC Intent and providing me Intent Chooser. Following is the code for it in

Is it possible to transfer NFC data from one Android device to another without the 'Touch to Beam' screen?

一个人想着一个人 提交于 2019-12-01 11:08:23
I am trying to send NFC data from one Android device to another. I was able to do it successfully using the 'Touch to Beam' functionality. But I would like the data transfer to take place automatically as soon as both the devices are together. I saw this question answered in StackOverflow multiple times. Unfortunately, while some say its not possible to send NFC data from one Android device to another this way, some others suggest to try "foreground-dispatching" (which the official documents say is now deprecated). I wasn't successful with "foreground dispatching" though I am not entirely sure

Is it possible to transfer NFC data from one Android device to another without the 'Touch to Beam' screen?

限于喜欢 提交于 2019-12-01 08:46:42
问题 I am trying to send NFC data from one Android device to another. I was able to do it successfully using the 'Touch to Beam' functionality. But I would like the data transfer to take place automatically as soon as both the devices are together. I saw this question answered in StackOverflow multiple times. Unfortunately, while some say its not possible to send NFC data from one Android device to another this way, some others suggest to try "foreground-dispatching" (which the official documents

Making NFC/Beam more automatic

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 05:26:15
I am adding NFC/Beam capabilities to my app and I would like it to work as automatically as possible. I would like to get rid of the "Touch To Beam" screen from the sender and the "New tag scanned" screen from the receiver. Basically, I want it to work like it does in the Samsung commercial!!! I read in stackoverflow that it seems like there may not be a way to get rid of the "Touch To Beam" screen, however I am hoping someone has some updated information or knows how to remove the receiver screen. Thanks! Sending side When using NFC peer-to-peer communication (aka Android Beam) between two

Making NFC/Beam more automatic

五迷三道 提交于 2019-12-01 03:07:29
问题 I am adding NFC/Beam capabilities to my app and I would like it to work as automatically as possible. I would like to get rid of the "Touch To Beam" screen from the sender and the "New tag scanned" screen from the receiver. Basically, I want it to work like it does in the Samsung commercial!!! I read in stackoverflow that it seems like there may not be a way to get rid of the "Touch To Beam" screen, however I am hoping someone has some updated information or knows how to remove the receiver

Is it possible to use Android Beam between an android device and another NFC device?

拈花ヽ惹草 提交于 2019-11-30 08:59:37
I'd like to implement a NFC communication between my Android app and a NFC-enabled kiosk. I've read the documentation and I understand pushing data can be done in 2 ways: Via foreground NDEF pushing for API level 10 to 13 Via Android Beam from API level 14 I think I can do what I want to via the first solution but I'd like to know if it's possible to use Android Beam between an android device and a non-android device? Thanks for your help, Romain Although the function calls between API 10 to 13 and APi 14 differ, the actual underlying protocol is nearly the same. In both cases, NFC peer-to

Bi-Directional Android Beam

老子叫甜甜 提交于 2019-11-29 21:49:19
问题 Here's what I'm trying to do with 2 Galaxy Nexuses running Android 4.0 with NFC capabilities: Device A and B are in close enough to initiate an Android Beam UI. Device A sends a beam to Device B Device B received beam, does some processing, and then sends a response beam back to device A I have the initial beam from A -> B working fine but not the communication back. I do want to send something more than just an 'ACk', like a small payload of data. Is there any way to do this over NFC with