I am working on an android application which works offline as well as online. It supports uploading picture, audio & video files.
Now when the user wants to upload a media file, it needs internet. So I want to maintain a request queue which fires all HTTP requests once it detects active Internet connection.
My solution : 1. To maintain an XML file. 2. Write it whenever a new request is created with appropriate data 3. Everytime intenet connection comes parse this XML file and shoot requests asynchronously.
Doubts 1. Is this the best way to go about this? 2. I will have to keep polling for an active internet connection. 3. More importantly, is there any library which can handle this for me?
Note : I am using Volley library but its not suited for large file uploads. Plus it does not have a feature of preserving requests till internet is available.