Android: Tap phones to exchange information without NFC - java

I would like to develop a application that when used between two phone we can send exchange data(like e-visiting card). I intend to develop it for all smart phones even those without NFC. I am just a budding developer and would like to have some references about the possibilities of such an app. i have seen BUMP but i do not intend to maintain any server and would like to create a temporary network between the two phones and terminate it after the transfer. So is there any possibility in developing such an app?
Thanks in advance

Depends on the size of the data, but one possibility that comes to mind is the use of QR codes.
http://en.wikipedia.org/wiki/QR_code
You could try using a library like zxing (https://code.google.com/p/zxing/) to generate the qr codes.
Basically the phone wanting to send the data generates a qr code representation than the phone wanting to read the data reads the qr code with its camera and translates back to the original data.

I think you should try to use bluetoolth or local area network.
I pefer LAN.
In your app , you can set one app as server, another app as client.
make a socket connection and send your data.

Related

Is there a way to issue the * commands to the mobile provider to query things like balance, minutes remaining etc from within android app?

The cellphone network provider in my area has a few functions you can do by dialing what I am calling the "star commands", that is you type and asterix(*) followed by the code of your command and press send and you are able to query account balances and a whole slew of other functions that the cell network has made available. I think this is common place among all cell networks.
I want to be able to make these commands and read the responses, issue other commands based on those responses and so on, all from within my android app.
Does anyone has experience doing this?
Those commands are known as USSD commands. You can use TelephonyManager.sendUssdRequest to send a USSD command, providing a callback to receive the result form the mobile network.
Bear in mind Android only introduced support for invoking them programmatically in API 26 (Android 8.0). If you need that functionality on any earlier Android, you'll need to do something hacky, writing some code that automates pressing buttons of the system UI

Java Bluetooth Proxy

I’m not sure if this is the right place to ask this question as this is my first question, but I have the following scenario and I need advice and guidance. Or, if this is the wrong place to ask this question, where should I post it?
I want to create a Java Bluetooth proxy application that will sit in the middle of an Android app and a bluetooth IoT device. I want this Java application to see all the traffic that is being exchanged between the app and the IoT device. I have found similar applications called btproxy and btlejuice, but I want to implement it within Java and I want it to be really simple. I have looked into Bluecove but I'm not having much luck. I’m guessing I will need 2 different machines or VM’s so I can use 2 different bluetooth adapters.
Basically, when you connect the Android app to the computer/VM, the data will be logged and it will be sent to the IoT device. The IoT device will then process it, and send its data back to the Android app via the computer/VM. I’m guessing this relies heavily on the UUID of the app and the device?
Is this possible to achieve, if so, have I got the right topology for this scenario and what would be the best Java API to use and is there any code that will help?

Android to Raspberry Pi with TCP/IP

I'm working on creating an Android app that will act as a controller for a robot I'm building for my kids. I just want to be able to turn it's head, and move it's arms. I was experimenting with TCP/IP earlier, and was able to send data from my phone to my Raspi. The issue I'm confused about is how to go about parsing the data. Currently, I'm just dumping all of the data into one stream from the phone, is there any way to send data for the head turn, and the individual arms as separate streams, and then send them off to the robot?
Why don't you use any popular format like JSON or XML for this like
{"command":{"type":"head","direction":{"up":"2","down":"0","left":"0","right":"0"}}}
And parse it in the RPi

Using DSLR Controller for a Secondary Display

I am trying to create a low latency method to use an android device as a secondary display for a PC. So far all I have found has been either wireless streaming, or a slow usb connection (i.e. using iDisplay).
However, I found a DSLR camera contoller app (https://play.google.com/store/apps/details?id=com.dslr.dashboard/) that is able to stream a live feed of the camera to an android display via USB. Would it be possible to edit the source code of this application so it can read the video output of PC via USB? If so, how would you go about this? Do you think that this would be a low latency alternative?
Thank you!
Lots of fantasy in your question. Have you ever seen a PC outputting data from one of its USB ports to another device? How are you supposed to do that? With a plain male-to-male USB cable, in case you find one? Sorry but things don't go that way. To transfer data (files, or a network) via USB between two computers you'd need some propietary/specific software. Of course, once you have acomplished that is technically possible to transfer files with the screen content. Buy you'd need to develop a software that would capture the computer screen, compress it in real time, and send it through USB with enough low latency to be usable. That's going to be resource intensive.
A better, easier approach would be, maybe, using some sort of remote desktop or VNC on the Android machine, with the computer acting as a server. At least far more feasible than trying to implement a similar protocol by yourself.
Sorry but what you are trying to achieve is flawed from the beginning.

Beginning NFC application development

I am going to build an client-server service that will control the security of a house(who comes in and who comes out). I want the identification to be made via nfc communication and especialy between a nfc-android phone and a nfc reader connected to a pc. So i am thinking of 2 programms. one for the phone and one for the pc( +1 for the server if any). I want data to be saved to both phone and pc. Is this possible via nfc? can the phone read and write data via nfc?
I am thinking of using java for both programms. Do we know for any nfc api? (i have a nxp chip on my device)
What reader should i buy? any recomendations?
In order to make the application you have to save certain information (e.g. user id) in a secure place. This is the problem, since the phone normally does not allow running in card emulation mode and do not allow to access the secure element - more you can read there: Android and Symbian NFC mobile development questions and answers (FAQ).
Anyway it seems that the Mifare 4K can be used... Might be the p2p mode with the SD card secure element is also a way there...
BR
STeN
Android does let you now to use your phone like it is a nfc-tag.
This is called "Host based Card Emulation".
On your phone, you can either let android do the magic and after the transaction is finished read the status in your app, or you can have your app control the whole process.
See http://developer.android.com/guide/topics/connectivity/nfc/hce.html

Categories

Resources