[android-developers] Re: Enable / Disable android widgets runtime.

2010-01-06 Thread Jurg
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

[android-developers] Re: Enable / Disable android widgets runtime.

2009-09-22 Thread Dianne Hackborn
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

[android-developers] Re: Enable / Disable android widgets runtime.

2009-09-22 Thread nEx.Software
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, >