AppWidgetProvider is also a BroadcastReceiver,and I think you also can 
enable or disable it through your code.But I don't know whether it would 
work because I don't see AppWidgetService.java parse the "enabled" 
attribute and how it deals with that attribute.Get a try.Hope that can help 
you.

在 2013年3月1日星期五UTC+8下午3时31分50秒,abhay_401写道:
>
> Hi,
>
> When the user long press on Homescreen, he will get some options, Widgets 
> is one of them. If the user selects Widgets, he will get the list of 
> widgets in which he can launch on home.
>
> Based on some conditions I don't want to show him my widget on the list. 
> For ex: I am having boolean value, if it's true then only show my widget in 
> the list, so that user can launch it otherwise I dont want to show my 
> widget is Widgets list.
>
> How can we do this. Can anybody is having idea on this....?
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to