1

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, e.g. 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!

4
  • Yes, you need webservices in your server. If your application do a GET request on your server, your server must return a response.. This response can be in form of an xml object. Here an example of get request imdbapi.org/… Commented Feb 3, 2013 at 14:11
  • Thanks You , this Answer my Question , i will Find More Infos about Web Service Commented Feb 3, 2013 at 14:16
  • 1
    Thanks for edit David K :) Commented Feb 4, 2013 at 19:07
  • You are welcome Nikita! Commented Feb 7, 2013 at 15:38

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

16 Comments

@Nikita : You are most welcome. Glad to be of help. All the best ahead! :)
Thanks again :) , i will look into your Solution , Another Question , can i use Google Cloud to Send Messgae to the Device Throught my Website to Achieve whats iam trying , using the Google Account on the Device ?
Well, yes! You can use Google Could Messaging (GCM) to send messages directly to the android device. Here are a few documents that would help you get started. androidhive.info/2012/10/… developer.android.com/training/cloudsync/gcm.html developer.android.com/google/gcm/index.html
Thanks again :) , but as i can see , the server side is in Java ? how do i integrate it in my Website ?
I am not sure whether I get you, but I think what you are looking for is this developers.google.com/storage/docs/website-configuration.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.