Fetching details from android
how can i show android IMEI to MVC View by using web api
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
vetriselvan vetriPosted Apr 20, 2015, 4:48 AM
in .net store the imei number by using web api.
please help me,
could you please try to get solution from your friends circle.
Manoj BhoirPosted Apr 19, 2015, 2:42 AM
I don't think you can directly access any android device IMEI number in your web application. You have to create an android app which will register that android device IMEI number into your database and based on that your can access that number from your database to your MVC application.
public String getIMEI(Context context){TelephonyManager mngr = (TelephonyManager)context.getSystemService(context.TELEPHONY_SERVICE);
String imei = mngr.getDeviceId();
return imei;
}
You'll need the following permission in your
AndroidManifest.xml:
Pease refer this link to save data from android to database using web service :http://www.codeproject.com/Articles/112381/Step-by-Step-Method-to-Access-Webservice-from-Andr