If you really want your program to waste processing power on showing an animation then display the animation in the main thread and do the loading in another thread but focus on loading data and not manipulating widgets. Widgets can only be accessed from the main thread. Other than that, you can use the "solving the problem step by step" approach from the article I gave you a link to but it won't be as easy as writing play() and load().