I am trying to accomplish communication between PC Java Application and an Android Application as shown in the diagram.
I want to be able to send streams of Strings from PC JAVA app to Android Application (Android studio).
How can this be accomplished using OTG USB and direct communication (COM port) (I know it can be done over TCP and also using ADB protocol, but I am looking for something else, directly using USB/OTG).
Any suggestions/references ?
you have use this application
https://play.google.com/store/apps/details?id=info.dvkr.screenstream&hl=en_IN
this application code also avelable on Github
https://github.com/dkrivoruchko/ScreenStream
Related
I need to develop android application that will communicate with PC over USB. The PC software will send some data and android app need to display received data.
I already did this communication over sockets (pc server, android client), but i need to cover situation if there is no internet connection. What is the best way to do this?
I have to develop an biometric authentication application.
The application will be written in java and it will be an desktop app, I want to use my smartphone for the fingerprint sensor, but I don`t know how to build this connection betwenn application and phone.
The main application will be installed on a computer without web.
I would be grateful if you have any idea or examples how to do this. Thank you!
You should have an app on your smartphone which uses the fingerprint authentication API.
If you are looking to use an android phone, you can refer this
https://developer.android.com/about/versions/marshmallow/android-6.0#fingerprint-authentication
You can create a simple APP using this API.
When user authenticates, then you can send message to your desktop java application from this App.
By 'without web' if you mean without internet, but can be connected to a local network, then you can send message via TCP/UDP.
Or if you wont be able to connect to any network, then you can try bluetooth.
If bluetooth is also not available, then you can connect your phone to your computer via a USB cable and communicate using Serial communication. There are a few external libraries available for this.
I am trying to develop an android app that will allow audio streaming between two android mobiles kind of audio conferencing by using socket programming.
what should i use for audio data transfer? i am using api 10
if you want to link inside a LAN then there is hope; however, if you want to connect through the internet then forget about it, NATs and CGNs and the likes won't let you (well, unless you'll provide a third-party relay server for your app).
I have an old android phone (2.2) and I need to use it to transfer a (.tok) file to Basic Stamp micro RS232 using a USB-Serial converter in between. So bluetooth is out of question. My only option is to write to the USB port of my android and make the BS2 micro receive it.
I`ve never programmed Android so need some guidance as to how I do this, specially when my api level is 8. I need a simple program that reads a downloaded (from the processing local linux PC) file from sdcard and then send it to USB port without any processing. That file is then received by the RS232 port of bot.
Android 2.2 API does not have USB host capabilities.
Host capabilities was not made available until Android 3.1.
This means you can't write an android program on your v2.2 phone that will control the USB communication.
I'm also guessing that even if you did update your OS, the phone doesn't have a USB-A port necessary to power the bus.
no need "usb host", work an older android devices like 2.2 http://code.google.com/p/android-serialport-api/
I have a native application written in C++. I would like to write an Android application that would be able to comunicate with my native application when user is in connected to the same WiFi network as my PC.
How this things are done. I mean what technologies are used behind it. Maybe you have some samples?
You could use a peer-to-peer library, like AllJoyn from Qualcomm. The idea is that both your PC and the Android device will use TCP/IP to communicate with each other. You still need a protocol above that however that will handle discovery, session establishment and exchange of data.