Further even the Service constructor is called asynchronously.

It looks like all operations on a Local Service have to go through the
ServiceConnection, or at least operations on the service have to be
deferred until after onServiceConnected has been called.  Is that
correct?

Any other pointers about the correct design pattern to use for a
LocalService?

On Nov 2, 11:54 am, jotobjects <[email protected]> wrote:
> I have tried both startService() and bindService().  Both methods
> return before Service.onCreate() is called.  So work I was expecting
> to complete in Service.onCreate() is not done.
>
> Is it necessary to do initialization steps in the Service
> constructor?  If so what use is the Service.onCreate method?  Any
> suggestions about how others handle this problem?
>
> I found this thread which describes the problem, but the poster's
> solution is not described.
>
> http://groups.google.com/group/android-developers/browse_thread/threa...

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