can I start a service from worker thread?
You can start service from any where, but still oncreate, onstartcommand runs in main thread only.
You can start service from any where, but after that oncreate, onstartcommand runs in that worker thread. so you have to make sure that you shouldn't touch UI from those functions.
No, it is illegal to do so. it will throw run time exception and program will be crashed.
it gives compile time error if we try to do so.
Back To Top