Does a runnable in a service run on the UI thread
问题 In Android, when I create a runnable inside a service and run it, while I realize it runs in its own thread, is this thread somehow part of the UI thread? In other words, if the runnable carried out a long process, would it affect the UI? EDIT: private class SomeRunnable implements Runnable { @Override public void run() { try { } } } SomeRunnable runnable = new SomeRunnable(); (new Handler()).postDelayed(runnable, 1000); 回答1: Docs: A services runs in the same process as the application in