Android UI thread

I wanted to query a database on the onCreate method, but I ran into issues when doing this from another thread. First I tried to do it with the method, but it seems like the View is not always attached to the window, so the run() method of the Runnable was never called. Another […]