oncreate - AsyncTask re-executing onresume -


i have little problem.

i fetch data network listview using asynctask. if press on item takes me activity. then, if press 'back' button, asynctask not execute again. (which want).

the problem is, if on listview press button, , listview activity again, asynctask executes again.

i'm not sure if happening because listview's activity destroys , loses reference, or if because onresume (i think) recalling oncreate.

when press back, go same old instance of activity.

if want asynctask run again need call execute in onresume.

from have told, seems call asynctask execute in activity oncreate. when go listview activity , come , creating activity again , why asynctask executed. onresume called after oncreate. onresume called when activity comes focus.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -