Activity in android -


i need data web , display in ui.currently, did functionality in activity oncreate() method.is right? or else can use other life cycle method onresume(),onpause().please guide me.

long lasting operations, such download web, should newer invoked ui thread (in oncreate, onresume, onpause). should use background tasks this, or anr crash. 1 of possible ways use asynctask, explained here.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

java - where to store the user credentials in an enterprise application(EAI)? -

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -