nfc-p2p

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

Android NFC with USB-NFC-Reader

不羁的心 提交于 2019-11-29 08:20:26
I have an Android tablet with Android 4.2. This tablet does not have NFC hardware. However I have an external USB reader: ACR 1252U , that came with an Android library . This library unfortunately only gives me basic functionality - read and write Tags. Altough this is working quite well, it is not enough... Because for my application I need to transfer files from my Android 4.2 tablet to other NFC devices (Android smartphones). So I need to put the NFC reader into peer-to-peer mode - which it supports. But how can I achive this with my setup? There indeed is an SDK for that reader, but it's

How can I send a string through NFC while Screen-Pinning?

柔情痞子 提交于 2019-11-28 09:13:24
I am trying to send a String through NFC while my app is using screen pinning . It does not work: The transfer does not happen; but if I disable the screen pinning the transfer of the String works. I can disable screen pinning for a bit and then perform the transfer, but that is a security risk. How can I do this? Here is all the code if you want to try. All you need to do is enable screen pinning manually through your app settings (so it is less code and still produces the same result). I tested this using two Nexus 7 both running Android 5.0. You don't have to read all this code, this

Android NFC with USB-NFC-Reader

ぐ巨炮叔叔 提交于 2019-11-28 01:40:49
问题 I have an Android tablet with Android 4.2. This tablet does not have NFC hardware. However I have an external USB reader: ACR 1252U, that came with an Android library. This library unfortunately only gives me basic functionality - read and write Tags. Altough this is working quite well, it is not enough... Because for my application I need to transfer files from my Android 4.2 tablet to other NFC devices (Android smartphones). So I need to put the NFC reader into peer-to-peer mode - which it

NFC tag detection is not calling onNewIntent and it's Launching From Main Activity

懵懂的女人 提交于 2019-11-27 20:49:09
I am new to NFC. I tried to connect to NFC and share the text data from a device to another device. I install my application on both devices and in one device I open my application and start tapping the device to the another device in order to transmit data over Beam. On the other device, my application opens due to the Beam interaction. However, the activity is started with the default MAIN intent action and not with TAG_DISCOVERED (or similar NFC intent). Every time it does the same thing. Also, it's not calling the onNewIntent() method. I tried to call onNewIntent from onCreate , but the

How can I send a string through NFC while Screen-Pinning?

时光怂恿深爱的人放手 提交于 2019-11-27 02:44:10
问题 I am trying to send a String through NFC while my app is using screen pinning. It does not work: The transfer does not happen; but if I disable the screen pinning the transfer of the String works. I can disable screen pinning for a bit and then perform the transfer, but that is a security risk. How can I do this? Here is all the code if you want to try. All you need to do is enable screen pinning manually through your app settings (so it is less code and still produces the same result). I

Transfer data to PC from android device via NFC

有些话、适合烂在心里 提交于 2019-11-26 21:59:05
问题 I am trying to develop an Android application for a hospital. In this system there is a need to get the patient information stored in the database in the android phone into the desktop computer using NFC technology. Is there anyway where I could use a NFC USB Reading device (ACR122U NFC Smart Card Reader RFID Writer 5 Mifare USB) to transfer the data from the mobile phone to my desktop computer? The real scenario for this would be, in a hospital when a person wants to take some test results

NFC tag detection is not calling onNewIntent and it's Launching From Main Activity

自闭症网瘾萝莉.ら 提交于 2019-11-26 20:30:21
问题 I am new to NFC. I tried to connect to NFC and share the text data from a device to another device. I install my application on both devices and in one device I open my application and start tapping the device to the another device in order to transmit data over Beam. On the other device, my application opens due to the Beam interaction. However, the activity is started with the default MAIN intent action and not with TAG_DISCOVERED (or similar NFC intent). Every time it does the same thing.