Detect android version


#1

hi

there is any solution for check what is the android version installed?

in my code i have parts that not work in android 9, but yes in android 8 or less.

i want know if there is any solution for check the version when the app start

thanks


#2

You have to use Kodular for that. They have a device utilities component where you have this block.

image


#3

ok thanks

but the problem is that my app not works in kodular, when i import the aia file, and open a screen i get an error .

image


#4

Do you use components that are not present in Kodular at the moment? you have to delete all ad components, the spacer component, etc.


#5

yes i think that is the problem, i need time for resolve it

thanks for your help


#6

Can you pm me your aia?


#7

you might want to use the tools extension and its ApiLevel method

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


#8

I knew you would have made something to check that :grin:
I think your tools extension is the most used of them all.