YoFrankie wrote:After displaying the main layout, i want to start a method, that calculates different things for quite a long time. If I call that method at the end of the onCreate method in my Activity, nothing is displayed until the method is finished, even if i start that method in a new thread. But that method has nothing to do with the UI, how is it possible to display the UI and straight afterwards start the method?
I tried to start an AsyncTask.
The AsyncTask parses some XML files and tries to set a listadapter on a listview in the end, but i get a "CalledFromWrongThreadException: Only the original thread...".
Ist it possible to change views created by the ui in an asynctask?
Or does something like that works with a handler?
Users browsing this forum: No registered users and 9 guests