Divyesh
Divyesh

Reputation: 33

Sending data to server from android application

I am developing an android app which collects the configuration of that particular phone and displays it on the phone. I want that data , i.e , configuration values of a phone, to send to my server. Can anyone help me with the code.

I am getting the codes for sending data from server to the application but not from app to the server.

Upvotes: 0

Views: 1064

Answers (2)

zasadnyy
zasadnyy

Reputation: 2167

Try using Spring for Android together with Android Annotations. e.g

@Rest(rootUrl = "http://company.com/ajax/services", converters = { MappingJacksonHttpMessageConverter.class })
public interface MyRestClient {
    @Get("/events")
    EventList getEvents();
}

Upvotes: 0

dev_android
dev_android

Reputation: 8818

You have to use websevices, either SOAP or REST. For SOAP you can use KSOAP2 KSOAP2 library or for REST use this link.

Upvotes: 2

Related Questions