Because if I start an activity, and I launch the threads in the method onResume, the UI of Activity is displayed only when the thread ends?
@Override
protected void onResume() {
super.onResume();
processDocuments();
}
private void processDocuments(){
parser = new Parser(rssDocument.getDocument(),rssDocument.getFeedRSS(), listener);
Thread processThread = new Thread(parser);
processThread.start();
}
You need to run the thread in the background using AsyncTask
}