I have 2 android applications 1st is running on android 4.4 and 2nd will be contemporary. I want to setup one to one communication between these two using socketIO, there will be thousands of such pairs at a time communicating with each other. How can I achieve this?
I have already tried and able to setup a communication with fixed port by following these websites https://socket.io/get-started/chat/. and https://socket.io/blog/native-socket-io-and-android/
Is it possible with or without knowing port in advance or any another method possible to achieve the need? Please elaborate the logic or any sample available to follow.
Thanks in advance.
Related
I am trying to connect my smartphone to two microcontrollers with RN42 bluetooth module.
I am able to communicate with both of them individually, but when I open start the connection with the second one, the first one is closed.
I used the Multi Bluetooth Chat example as starting point. But I really don't if that example is more focus on connecting several slaves to one master instead of connecting one master to several slaves (that is my case).
I don't know if I should give you my project, it is to many lines and actually is almost exactly the same than BluetoothChatMulti project. Anyway if some you need it just ask for it.
I have been looking for a solution in forums and on Internet but I didn't find the solution to my project. Hope any of you have been already by this problem and can help me.
Best Regards!
I'm trying to use an Android device to control an Arduino through Bluetooth. I able to control an LED and a few component at the Arduino. But I don't know how to have Android receive data from the Arduino similar to how the BlueTerm application works.
How can I do this? I don't want to use the Amarino library, because I don't want to have to use an extra .jar.
I suggest using a small library called Amarino. I have used it in the past and it provides a VERY simple interface for communicating from Android to Arduino and visa versa. It has a great deal of tutorials and you can even read the creators thesis to get a full understanding of how everything works behind the scenes.
hi im quite new to android development and am coming from the world of GWT and Remote procedure calls to communicate with a server.
Now i am looking for a way to realize calls on a server over the internet via my android app.
is there a pretty way to realize this?
thanks in advance
Edit: Okay maybe I put my question wrong. I am just looking for a way to send a class object from my server via an appropriate protocol over the internet, so i can use it in my app
can someone please help me?
You can try to use http-dispatch. It is the adapted gwt-dispatch framework which can be used on Android platform. Http-dispatch uses default binary serialization so it works from the box for many types of objects. Currently it is in alpha but you can try http://code.google.com/p/http-dispatch/
I've been investigating the best way to develop a video chat application on android that:
a) Is straight P2P
OR
b) Can take advantage of existing services (gtalk?) that already support video chat to handle communications while being able to maintain a custom interfaced app
For this I was considering using XMPP + Jingle. I've seen this post and this, and I'm not sure if this idea is viable atm. What I would like to know is if it is in fact possible to use jingle on android and what, in your opinion, would be the best library/API from those available (patched smack, official smack, asmack, beem's asmack..) to use given my purpose.
I would also appreciate opinions regarding if option A or B are best (or even possible, since I'm not sure option B is).
I have researched Beem for about 1 week and I found Beem does not completely implement the Application types and transport method of jingle.
Hi I'm posting this answer to help people searching about android video chat I think the best way is to user android webrtc
use this as client
android client
and use this as server
server
I'm posting this after weeks and weeks of search so believe me this is the best solution
I have an android tablet and have an application installed on it... Now i need to control this application on the tablet through my android device... is there a way to do such thing?
Explore this example project by Google
http://developer.android.com/resources/samples/BluetoothChat/index.html
see how it works and try to implement your programming skill to transform this chat application to your idea...
How ever I am assuming that you are the author of application which you have desire to control.
happy coding.
EDITED:
Logic structure is simple both application should be able to detect bluetooth and paired(connect) with each other for communication. once you have communication instead of sending message(in chat) you send some information via buttons which will execute some methods on tablet...Just a thought... As if in chat application you can update and add messages to your thread...this application will help you to reach goal. Lot of work though!
If you are familiar with Sockets, this shouldn't be a problem for you, because the Bluetooth-connection and communication in Android is very much the same. See the Bluetooth-Tutorial and Googles "Bluetooth-Chat" example.