ICS home screen widget displayed on Pre-ics

How can I prevent my ICS widget from showing on old phones while keeping my application backward compatible. Currently, my task manager runs on froyo and beyond, but I have an ICS and a widget that I want to show only to compatible users.

+4
source share
2 answers

Android for Android does not currently exist. Just make two assemblies.

0
source

You can check on the device to find out which version it is using something like

Build.VERSION.RELEASE 

to request an android version. After defining, you can make the widget available only for this version level or higher.

0
source

All Articles