Skip to content Skip to sidebar Skip to footer

Using Imei As A Parameter For Json Service

after grasping AsyncTask, I have run into yet another road bump. Using JSON (which connects to my local SQLServer, I would like to retrieve an object using the IMEI as a string par

Solution 1:

Could be one of these 2 things:

  1. Add permission to manifest < uses-permission android:name="android.permission.READ_PHONE_STATE"> (remove space after '<')
  2. You could be declaring a Button in the layout file of the MainActivity but cast it as a Spinner while initiating the Button or vice-versa.

Solution 2:

If you didn't give permission to access read phone state then add this line to AndroidManifest.xml (<uses-permission android:name="android.permission.READ_PHONE_STATE" />).

Solution 3:

I've fixed the problem, after shuffling the code around. I have since removed the button since it was not necessary.

Post a Comment for "Using Imei As A Parameter For Json Service"