简体   繁体   中英

Send Data/Text from Web Application To Android

I am trying to communicate between a web application and an Android device in the following way:

  • Log into my website with a unique id (eg. IMEI)

  • Send data from android to the web application the user has logged into

  • Send data from web browser to my application, eg with a simple html button

I know of the HttpUrlConnection class and other useful classes but I am unsure how to use them successfully. Let's say I just need to send GPS coordinates from my application to the user logged into my website, and then click a button in my website to send a message to my app.

I'm looking for some recommendations of various technology/methods I should use to help me achieve this!

Thanks!

Use SQL Server to manage the data on your desktop and create a web-service in .NET on Visual Studio.

Then connect to the web-service in your application and set/get data from the DB, using web-services.

Links which might be useful :

How to make a web-service in .NET (does not include the implementation in Android) : http://srikanthtechnologies.com/blog/dotnet/wsdaljava.aspx

How to connect your service with Android :

http://seesharpgears.blogspot.in/2010/11/basic-ksoap-android-tutorial.html

http://www.codeproject.com/Articles/304302/Calling-Asp-Net-Webservice-ASMX-From-an-Android-Ap

http://adrianandroid.blogspot.in/2012/05/access-c-net-web-service-in.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM