Hello,
I am trying to capture mobile IMEI number of Devices.
While the App working fine at 2 devices. [Xiomi [ Android 10] and Samsung [Android 8.1.0]].
But when I am trying to capture the IMEI number of Samsung Galaxy M30S [Android 10] , the application crash while load/Opening of App.
I have un-installed and again install but no luck.
The below error I am getting while trying to open the App....
The below code I am running to capture IMEI number
Please advice on this......
I am trying to capture mobile IMEI number of Devices.
While the App working fine at 2 devices. [Xiomi [ Android 10] and Samsung [Android 8.1.0]].
But when I am trying to capture the IMEI number of Samsung Galaxy M30S [Android 10] , the application crash while load/Opening of App.
I have un-installed and again install but no luck.
The below error I am getting while trying to open the App....
B4X:
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main$ResumableSub_Activity_Createresume (java line: 548)
java.lang.SecurityException: getDeviceId: The user 10299 does not meet the requirements to access device identifiers.
at android.os.Parcel.createException(Parcel.java:2088)
at android.os.Parcel.readException(Parcel.java:2056)
at android.os.Parcel.readException(Parcel.java:2004)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:11175)
at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:2282)
at anywheresoftware.b4a.phone.Phone$PhoneId.GetDeviceId(Phone.java:441)
at b4a.example.main$ResumableSub_Activity_Create.resume(main.java:548)
at b4a.example.main._activity_create(main.java:405)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
at b4a.example.main.afterFirstLayout(main.java:108)
at b4a.example.main.access$000(main.java:20)
at b4a.example.main$WaitForLayout.run(main.java:86)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7814)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)
The below code I am running to capture IMEI number
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dim pid As PhoneId
imei=pid.GetDeviceId
Log(imei)
End Sub
Please advice on this......