Latest Android Aptitude Question SOLUTION: Is it possible to have a service with multiple threads in it? How to achieve this?
Options
1) you can't have more than one thread in a service.
2) you can create multiple threads
Is it possible to have a service with multiple threads in it? How to achieve this?
Options
1) you can't have more than one thread in a service.
2) you can create multiple threads in a service
3) option 2 is possible by creating thread in onCreate()
4) option 2 is possible by creating thread in onStartCommand() of your service class.
Students attend our lectures, not because the mathematics we teach ‘makes lots of fun’ for us, but because they believe they can learn some essential knowledge from us. And each of our young students has only one life to live. We should therefore be a
H. Behnke
When I fill, I am alone & a lot of haze in my life. I close myself in a room with a mathematics book. It fills a thrill in my mind..!