Starting a Service in a separate thread

Viewed 3472

In the Android docs, it says that a Service runs in the main thread.

What happens if I start my service in a separate thread? Does it still run on the main thread?

I am not talking about using android:process in the manifest file, but rather something like:

Thread thread = new Thread(new Runnable() {
    public void run() {
        // Start service
    }
}).start();

Don't worry, I will not do it like that, I am just curious.

3 Answers
Related