I am facing the exact same issue . Can someone help please ? Deren ,
were you able to get the help from someone ?

On Feb 20, 5:15 pm, Deren <[email protected]> wrote:
> I've successfully built a small sample app where the user can add a
> appwidget, using the AppWidgetPicker, using the action
> AppWidgetManager.ACTION_APPWIDGET_PICK. When I do this, the
> AppWidgetPicker takes care of binding my appwidget-id to a provider.
> However, now I'd like to load some widgets without using the
> AppWidgetPicker (for instance, maybe I want to restore the added
> appwidgets when I restart the application or something). I've tried
> the following code
>
> ComponentName widget = new ComponentName("com.android.alarmclock",
> "com.android.alarmclock.AnalogAppWidgetProvider");
>
> int appWidgetId = mAppWidgetHost.allocateAppWidgetId();
> mAppWidgetManager.bindAppWidgetId(appWidgetId, widget);
>
> but it fails with a SecurityException, even though I've added
>
> <uses-permission android:name="android.permission.BIND_APPWIDGET"/>
>
> to my manifest file. Is this the way to do it? (using
> AppWidgetManager.bindAppWidgetId). Im using the emulator, and android
> 2.1.

-- 
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

Reply via email to