Android Question APP compiled with SDK=26 functioned with Android8,but not functioned in Android 7.1.2

petr4ppc

Well-Known Member
Licensed User
Longtime User
Dear friends,

I am using SDK=26 and phone with Android 8.
Before I CheckandRequest permission I am using this code:
B4X:
If myphone.SdkVersion>=26 Then
Everything is OK

if I compile same software with SDK=24 or SDK=19 then I get error message in B4A v8.30:

and this message I get in LOGS if I run APP in phone with Android 7.1.2. This version of APP is perfectly functined with Android 8.


I am doing mistake with
B4X:
If myphone.SdkVersion>=26 Then
or with using some bad SDK?

In manifest I have
B4X:
<uses-sdk android:minSdkVersion="4"/>
I have tried to change this to 10 or 15, but I get same errors

If I compile program with >=SDK26 then it is not compatibile with older Android version?

Thank you very much
p4ppc
 

petr4ppc

Well-Known Member
Licensed User
Longtime User
UPDATE:
It was my mistake
Everything is OK with Android 7.1.2.
Phone have SDK=25 and I had set >=SDK26.

From SDK 23 is Android working wirh runtimepermission so I set:
B4X:
If myphone.SdkVersion>=23 Then

and everything is working now
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…