Android How do you support the old API without having 2 compiled .apk files when using methods from the newer APIs?

I would like to implement multi-touch in my application. Multi Touch support was not available until API version 5. However, I would also like my application to be backward compatible to API level 4. Is there a way around this other than creating two separate .apk in which I remove the multi-touch code from the version 4th level?

Thanks to everyone.

+3
source share
2 answers

SDK, - , - , , SDK, . Android (Build.VERSION.SDK).

, Android Developer : .

+7

:

0

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


All Articles