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
Related
Checked so far : this stack post, this one and official docs
I am not really familiarised with the Bluetooth api, yet I couldn't find something to clarify based on my need.
What I am trying to achieve is: Using my android device (as server in this bluetooth connection) to push data to the other device (which can be on any platform)
Seems simple, and I might think about it in a complicate way (was thinking I might provide some interfaces / callbacks to the client part)
Also, my implementation should not affect the client side.. I am a bit stuck into this, if anyone could clarify it a bit, or come up with a decent sample where the code is described a bit,
Thanks in advance, and Happy Coding !
your phone can act as a master(host) device Here is a example you can implement
https://github.com/bauerjj/Android-Simple-Bluetooth-Example
this example uses Bluetooth to connect with HC-06 module but you can use it with other devices
I realize that this is the kind of question that frequently gets a lot of (well deserved) "what have you tried" comments and down-votes, but I'm hoping that by the time I'm done asking I can avoid that.
I've been looking around but unable to find the answer to how one goes about writing an application that consists of the following three things:
An Android app that connects to a host device via bluetooth
Communication io layer that sends signals back and forth on
that bluetooth connection
A host resident native app (preferably Unity3D, or AIR) that can receive/send messages back and forth to the connected app.
I have written many Android applications so I am not in need of any kind of "getting started" hand-holding, rather I just need some guidance (preferably in the way of a web link or book tutorial) on what it takes to utilize bluetooth and how one actually communicates via it.
Thanks in advance for all useful tips.
Here are a few links that I found in terms of Bluetooth connections
First of all the dev guide(I assume you have already looked here, but if not this is a good place to start)
http://developer.android.com/guide/topics/connectivity/bluetooth.html
http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html
This one is a basic tutorial on how to Bluetooth on android
http://luugiathuy.com/2011/02/android-java-bluetooth/
This is a long PDF on Bluetooth programming in general (I haven't read it, but from what I have seen it looks over in depth) it covers java and OSX, but not android
people.csail.mit.edu/rudolph/Teaching/Articles/BTBook.pdf
Here is a similar SO question which might contain helpful links
Code samples for Android Bluetooth programming
This is the best Bluetooth open source project that I could find for android, it doesn't fit your description over well, but here it is anyways
http://code.google.com/p/bluetooth-remote-control/source/browse/#svn%2Ftrunk%2Fsrc%2Fpro%2Fapus%2Fblueremote
I realise that a lot of these links are simpler than what you really want, if I find anything more complicate I will add that.
Situation:
Let's say i have 2 emulators and I want to send a text from one emulator to another. What is the way to solve this? Can i using .Net web service?
Anythings that can forward your messages from Android client.
So if you don't want to make it to complex, consider to use some kind of RESTful WS for example.
Good luck
For .NET platform, maybe you want to make a quick look on this link link to some blogs
Where can I learn about network programming in android? I am writing an application which has to communicate over the wifi connection.
To my point of view it's better to read the following sources. In the first there is an example of client and server for android using sockets. I've tried this several times so I know that the approach in this article is working. In the second link you can find links to other resources.
For tutorial on http client, see http://www.vogella.de/articles/AndroidNetworking/article.html
Mostly I have learned from the examples at http://developer.android.com/resources/browser.html?tag=tutorial
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.