I am currently programming vor Android. I’m using C2DM service to send an notification to my application.
When I answer the notification I want to make an connection to a server wich send images continiously everytime I send an http get.
Can I do this using an Asynctask with an while(!userDisconnect)? Or could i check when the Asynctask is completed and do it again? I’m not sure, i’m thinking that it will run ery slow with an while loop?
I’ve found the answer myself: