Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am trying to get and send data.From android device to example.exe(c#) and from example.exe to android device. I am trying wcf service application but actually I don't know how can I use the wcf service or web api or other technologies. Actually I have an image on android device and I must send to c# application and it must calculated some variable(ex: size, avarage color, pixel counts etc...) on c# and it must send to android device.

Thanks in advance...
Posted
Comments
Sergey Alexandrovich Kryukov 29-Apr-14 17:59pm    
Too vague. The best way depends on the data you need to move, application protocol requirements and more. Are you using CLR (like Mono, Xamarin) for Android or not?
If not, you could use just sockets.
—SA
Osman Villi 29-Apr-14 18:07pm    
I am not using mono,xamarin.I will write not only c# code but also android code. Can I make wcf and ksoap on android ?

Use web services for sending & receiving the data in both the applications. Make use of parser to decode the data.

I tried to use same thing to make a rss feed reader. I use to create rss feeds from my c# applications which was read by rss reader on android devices by consuming the services.
 
Share this answer
 
I think you have to crate service between your C# application and android application. Create client server communication between these two using socket or "http service". We have done same kind of things to send data from android to C# application.
 
Share this answer
 
 
Share this answer
 
Comments
Osman Villi 29-Apr-14 21:08pm    
It's very good example but I don't use mono. I must using only android on eclipse. Thanks...
ZurdoDev 29-Apr-14 22:01pm    
Try this one:
http://www.codeproject.com/Articles/104931/Introduction-to-Android-development-TouchCalculato

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900