What is the best way to deal with different versions of Android?

I have an application that works fine in Android 1.x, but not in Android 2.x. I need to do something different depending on the version of Android that the application is running on (contact requests). Is it possible to have two separate methods in one application that I can choose based on the version of Android on which the application is running?

many thanks

Ed

+2
source share
4 answers

sdk BUILD.VERSION, Android sdk?

, , 1.x 2.x. - ?

, , .

+1

The example business card that comes with the latest Android SDK was a big, big help. I recommend it to those who, like me, may not be a full-time professional. Thank you all for your kind contribution.

0
source

Source: https://habr.com/ru/post/1782936/


All Articles