The hostId is a number of your choosing that should be internally unique to your app (that is, you don't need to worry about collisions with other apps on the system). It's designed for cases where you want two unique AppWidgetHosts inside of the same application, so the system can optimize and only send updates to actively listening hosts.
j On Tue, Aug 18, 2009 at 10:48 AM, Flying Coder<[email protected]> wrote: > > > Hi there, > I'm developing my own appwidget hoster and am curious about the > "hostId" used in the constructor: > > AppWidgetHost(Context context, int hostId) > > The docs don't say anything about it. Can anyone tell me what its > used for, and what values are legal? > > > Thanks for the help, > Steve > > P.s. Sorry if this is a duplicate post -- I posted this question > earlier, but now I can't find it(!) > > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

