I am currently using Activity to upload images to the Internet, I am using AsyncTask, and everything works fine. I am currently using Activity to achieve this, basically it allows the user to enter a few details, take a picture and then send until a response is received. When on compounds E or G the whole process can be quite long (in excess of a minute). It is not possible to complete the work and return to the previous action (this is what I want) until a response is received.
What options do I have? Currently, if I press the home button, the process is working fine and continues to load, can the application be minimized by programmability ?, I see a lot of problems with this approach, for example, if the activity is closed or an error occurs.
The only approach I can come up with is to transfer the actual download code to the service, collect information using activity, and allow activity to launch a new service for each download? I can then notify the user of success or failure using the NotificationManager and process the retry in the service.
I noticed that when sharing the image from the gallery on Facebook, the action closes immediately, and the user receives feedback through a notification. I assume this approach uses a service to upload images to Facebook?
Any help / advice would be greatly appreciated.
Hi
Bear
source share