Wanted to develop an android app to transfer some data to a PC via WiFi. Both the devices are connected to the same network. I know its a basic server- client program. But can anyone give me links to refer. I have searched but didn't find any complete tutorials. I know how to implement it in c but in android a little help would be greatly appreciated. Thanks in advance.
Asked
Active
Viewed 5,375 times
3
-
If you know how to do it in C, that's enough. Write the server in C which will run on the PC, and connect to it from your android app. Since you're writing both sides, the protocol used is up to you. – alzee Dec 18 '15 at 11:47
-
Thank you for the suggestion. Will definitely try – Learner Dec 18 '15 at 12:04
2 Answers
1
i think this one help you (http://forum.notebookreview.com/threads/sending-data-through-wifi-windows-and-receive-it-in-java-android.718060/) and also check this url (Client-Server: File transfer from Android to PC connected via socket)

Community
- 1
- 1

Dhaval Solanki
- 4,589
- 1
- 23
- 39
1
Little googling would get you a long way. Top two links from the Google which both have code: http://developer.android.com/training/basics/network-ops/connecting.html and How do I use the Simple HTTP client in Android?
Android app acting as a http client needs of course server on the PC, e.g. Apache. Or you can code your own with preferred language.