android - App keeps dying after http request results are put into layout -


i not think of title. sorry. anyway, have app making pull information custom web api. pull data api , fill in layout information. problem takes while app stalls few seconds before information pulled since in oncreate method of activity. resolve implemented loading dialog. problems began. put http requests seperate thread , downloads fine. no problem. keeps force closing every time try modify layout afterward. question how modify layout after background thread finished? try keeps force closing app.

use asynctask. you're trying update ui different thread. can't that. there's 11 billion other questions on exact same subject


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -