It's a very old post but maybe useful to some one
https://plus.google.com/+AndroidDevelopers/posts/DcsFABkyuYM
Basically you can specify which xml file you gonna look up in your Android Manifest
in res/values/bools.xml
https://plus.google.com/+AndroidDevelopers/posts/DcsFABkyuYM
Basically you can specify which xml file you gonna look up in your Android Manifest
in res/values/bools.xml
<resources>
<bool name="hasHoneycomb">false</bool>
</resources>
in res/values-v11/bools.xml
<resources>
<bool name="hasHoneycomb">true</bool>
</resources>
finally in AndroidManifest.xml
<receiver android:name=".WidgetProvider" android:enabled="@bool/hasHoneycomb">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/widgetinfo"/>
</receiver>
沒有留言:
張貼留言