I want to execute setContentView(R.layout.activity_main);
Android allows this to be done only from the main thread.
I want to execute setContentView(R.layout.activity_main);
Android allows this to be done only from the main thread.
Yes, any UI rendering and actions would run only on MainThread as per Android official doc and other business logic can be done using worker threads.