It shouldn't suggest it is possible to have it called multiple times, any
more than Activity.onCreate() or Service.onCreate() are.  This is a common
pattern in Android, so that you have a place to do your initialization after
the object has been fully constructed.

On Wed, Mar 2, 2011 at 8:06 PM, Satya Komatineni <satya.komatin...@gmail.com
> wrote:

> As part of figuring out the new widget support in honeycomb, I am at a
> loss to understand the difference between
>
> the constructor of a RemoteViewsFactory and its callback method
> "onCreate()".
>
> won't they always be called one after the other?
>
> The fact that "oncreate()" exists, suggests that it is possible to
> have "onCreate()" called multiple times for the same
> RemoteViewsFactory.
>
> why can't I do what I need to do in "oncreate()" in the constructor itself?
>
> I am missing something.
>
> Any help is much appreciated.
>
> I looked at the stack widget example and also teh weather widget
> example. this aspect is not clear.
>
> Thanks
> Satya
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to