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.
Android for Android does not currently exist. Just make two assemblies.
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.