Hi Al,

Thanks, this seems like a good approach. This was just what I was wondering
-- how to statically configure things so as to avoid the Android bugs with
runtime enabling/disabling. I'll give this one a shot! :)

On Tue, Feb 19, 2013 at 3:08 AM, al <achim.leub...@googlemail.com> wrote:

> You can "statically" configure this:
>
> In AndroidManifest.xml for the widget receivers add:
> <receiver   android:enabled="@bool/beforeHoneycomb" ...>...
> <receiver   android:enabled="@bool/sinceHoneycomb" ...>...
>
> Then define the booleans depending on the versions:
> In values/bool.xml
> <resources>
>     <bool name="sinceHoneycomb">false</bool>
>     <bool name="beforeHoneycomb">true</bool>
> </resources>
>
> values-v11/bool.xml
> <resources>
>     <bool name="sinceHoneycomb">true</bool>
>     <bool name="beforeHoneycomb">false</bool>
> </resources>
>
> I have an app in the play store using this approach. I'm not aware of
> problems with it.
>
>
> Am Dienstag, 19. Februar 2013 03:00:40 UTC+1 schrieb Digipom:
>
>> Hello,
>>
>> I was wondering if it's possible to have a different set of widgets for
>> pre-Honeycomb devices and post-Honeycomb devices? The reason why I ask is
>> because I currently have a 1x1, 2x1, 3x1 etc widget for the different
>> possible sizes, as Gingerbread and earlier didn't support resizeable
>> widgets, but this is redundant for Honeycomb and above because widgets can
>> be resized, and it would be cleaner if there was just one widget in the app
>> drawer rather than several. I've heard that runtime enabling/disabling of
>> widgets is unreliable and doesn't work properly, though I can't remember
>> where I read that now.
>>
>> What do you guys recommend?
>>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
-- 
Digipom
http://www.digipom.com

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to