I have an application, and I want to add a widget.
I'm digging through it, and it seems that Android 3.0+ only supports gesture-based views on the widget. For example, I can scroll my email as a list view on the gmail widget on 4.03, and I have also seen a grid widget (at 4.03).
Therefore, these types of widgets are 2.2 and 2.3
Is there any way i can provide my application for 4.0 and if the user is 2.3, then it is a different Will the widget load?
I have no problem in writing both of widgets, both of which work - I just want 2.2 users to use their 2.2 widget and 3.0+ users to use the 3.0+ widget .
Is it possible from an application?
> Thank you!
There are resources and code features to switch to version in Android.
For layouts and other resources, you can name resource folders,
res / value-v11 leakage / layout-v11 etc. In the code that will pull the best matching resource on the Android Runtime, you can check the SDK version,
if (Build.VERSION & lt; Build.VERSION_CODES.HONEYCOMB) {// android 2 here Highlight}
Comments
Post a Comment