My app create a few files dynamically and keeps track of the files through an object. At some point the object is passed to an IntentService. The purpose of the IntentService is to
- Create a XML-file to contain data about the other files
- Add the XML-file and the other files to a ZIP-file
- Upload the ZIP-file to a WCF-service
The ZIP-file MUST be uploaded at some point. Things can happen; the WCF-service may be down and so on.
What options do I have in terms of guaranteeing that ZIP-file will be uploaded? My current plan is to save some info to a SQLite DB and check it every time the app is started and take it from there. Not sure that is a good idea or if there are better ways to handle this.
Also, I am an Android newbie, but if I have understood things correctly, if the IntentService is shut down before it is done, it will automatically be re-created with the same Intent and such at some point, right? Else I will have to take that into account as well.