Android Service onBind -> onStart

Posted by Gernot on Stack Overflow See other posts from Stack Overflow or by Gernot
Published on 2010-04-16T09:11:45Z Indexed on 2010/04/16 9:13 UTC
Read the original article Hit count: 568

Filed under:
|
|

Hello,

I have a comprehension question about Android Services. I have a Service that performs background http operations and a Activity that should display the current state of these http operations.

So I implementet the Binder interface and so on. I can call the bindService method and onServiceConnected of my ServiceConnnection is getting called. But as far as I know, onBind doesn't calls onStartCommand() and so onStart() of the Service is never called.

So how can I call the onStart() method of the service class and start my operations. Or how is the best way to start my operations in the service, when I also want a binding between the Activity and the Service.

© Stack Overflow or respective owner

Related posts about android

Related posts about binding