i am (also) having trouble enabling/disabling widgets at runtime.
as reported before you can enable/disable component with the
packagemanager. but for the widget the behaviour i see is not what i
expect.
the widget will be referenced in the widget menu on the home screen
when the widget is enable
Yep. For the other part though you can use this to disable (make it as if
it doesn't exist) and re-enable any component of your application, such as
the receiver for the widget:
http://developer.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content
You cannot add or remove AppWidgets from your application. The user
must explicitly do that from the home screen.
On Sep 22, 10:40 pm, Manjunatha M wrote:
> Hi All,
>
> I am writing an widget application for android.
>
> I have a requirement where i need to disable the widget on some intent,
>
3 matches
Mail list logo