3

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.

Learner
  • 483
  • 8
  • 17
  • 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 Answers2

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.

Community
  • 1
  • 1
Vili T
  • 31
  • 1
  • 5