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
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.
I am wondering is there a way to intercept/monitor http traffic in android. One way which I could think of is to install custom module in android's browser source code such that all traffic goes through it.
Please steer me to the pertinent choice. Else how can we implement custom module, any guidelines?
If you know the browsers PID, you can use getUidRxBytes() to get TrafficStats
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