I am trying to change my widget to fit on 4.2 lock screens. However, I still want to support the old SDKs.
I added
android:widgetCategory="keyguard|home_screen"
to my appwidget provider in res / xml, but eclipse complains that "there is no resource id found for the widetCategory attribute in the android package"
If I raise minSdkVerion to 17, everything will be fine, but I want to still support the old SDKs.
I tried using resource qualifiers by creating separte res / xml-v17 / mywidget.xml and adding only the tag there, but the error still appears.
Thanks for any help.
Edit: I get it. using res / xml-v17 / folder is the answer. I just needed to change the build target for my project to 17 / 4.2.
android android-widget android-4.2-jelly-bean
Sam russell
source share