Hi Erel, all.
I have a app that when i compile in B4A 6.00 also with targetSdkVersion = 23 about device with Android 6.0.1 ( Samsung S7 )
If i compile with B4A 6.30 i have crash this app and this error:
Now understand that problem is this:
and i can correct this with Runtime Permission or if i insert targetSdkVersion = 22
But the question is why about B4A 6.00 is ok (same code ) and B4A 6.30 crash ??
Thank you
I have a app that when i compile in B4A 6.00 also with targetSdkVersion = 23 about device with Android 6.0.1 ( Samsung S7 )
run without problem.<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
If i compile with B4A 6.30 i have crash this app and this error:
LogCat connected to: ce0616068410b73802
--------- beginning of main
** Activity (main) Pause, UserClosed = false **
** Activity (act_richiesta_nuova_registrazione) Create, isFirst = true **
** Activity (act_richiesta_nuova_registrazione) Resume **
** Activity (act_richiesta_nuova_registrazione) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
--------- beginning of system
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 360)
java.lang.SecurityException: getDeviceId: Neither user 10223 nor current process has android.permission.READ_PHONE_STATE.
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:5371)
at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:812)
at anywheresoftware.b4a.phone.Phone$PhoneId.GetDeviceId(Phone.java:424)
at it.vendingmanager.distributori.automatici.main._activity_create(main.java:360)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at it.vendingmanager.distributori.automatici.main.afterFirstLayout(main.java:102)
at it.vendingmanager.distributori.automatici.main.access$000(main.java:17)
at it.vendingmanager.distributori.automatici.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Now understand that problem is this:
java.lang.SecurityException: getDeviceId: Neither user 10223 nor current process has android.permission.READ_PHONE_STATE
and i can correct this with Runtime Permission or if i insert targetSdkVersion = 22
But the question is why about B4A 6.00 is ok (same code ) and B4A 6.30 crash ??
Thank you