Android Programming and Technical Programming Technical

How to create a service with multiple threads in it?
Options
1) Create a service with creating thread in onStartCommand
2) Use Intent Service
3) Create a service with one thread in OnCreate().
4) Either use option1 or use Async task with service

Read Solution (Total 0)

Android Other Question

Bound service: binding to a service, what is the function that needs to be implemented in service class?
Options
1) onCreate()
2) onBind() & onUnbind()
3) ServiceConnectionListener in client side.
4) all above 3 are required
How to update UI from a service that has threads?
Options
1) Create a thread in the Service class and directly access UI components of your activity
2) Since updating UI from other thread directly is not possible, communicate with Main UI thread for the UI updates
3) Use Intent Service
4) Either use option 1 or option 2