Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
1.18/5 (3 votes)
See more:
I need to crate a android app that send device imei number to .net database.
in .net insert the device imei number using entity framework.
i need using web api in .net.
Posted
Updated 21-Apr-15 20:24pm
v2

1 solution

Create a webservice in your .net side in a .asmx file.
Write some function inside that webservice like below:

C#
[webmethod]
public void InsertIMEI(string IMEI)
{
 //do your insert part here
}


then from your android page supply a string IMEI value of the respective device by calling this service method,and you done.

Use kSOAP library to consume the webservices from android side.

you will find details about kSOAP library and way to consume webservices in below link..
http://code.tutsplus.com/tutorials/consuming-web-services-with-ksoap--mobile-21242[^]
 
Share this answer
 
v2
Comments
Member 11420908 22-Apr-15 2:11am    
i am the new for android so please tell me detailed in .net and android.
Subrat OS 23-Apr-15 2:09am    
Please go through the link thoroughly and you will get your answer.
http://code.tutsplus.com/tutorials/consuming-web-services-with-ksoap--mobile-21242

and still if you want some clarification , ask in specific..:)

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