I believe that "interested BroadcastReceivers" means the ones that match the
intent.

Given your sample code it seems to me that only your widget will be updated.

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Wed, Nov 4, 2009 at 2:52 AM, Carl <vapor.trail....@gmail.com> wrote:

> Hello all,
>
>
> I would like to update my AppWidget only, without interfering with the
> other widgets in the system.
> I created the following code, but I am not sure it other widgets will
> also update, since I am using Context.sendBroadcast().
>
> Intent myWidgetUpdate= new Intent
> ("android.appwidget.action.APPWIDGET_UPDATE");
> myWidgetUpdate.setClassName("com.package.name",
> "com.package.name.mywidget");
> sendBroadcast(myWidgetUpdate);
>
> In the reference it is written:
>
> sendBroadcast(Intent intent, String receiverPermission)
> Broadcast the given intent to all interested BroadcastReceivers...
>
> Does this means that even if I specify the exact class to send the
> intent to, other unrelated widgets will also be udpated?
>
> Thank you.
>
> Carl
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to android-beginners@googlegroups.com
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to