This is an old revision of the document!
Assignment resources archive:
Your task is to create a backup service for Android and an Activity or series of Activities which act as a front-end for the service. Archiving and unarchiving should be handled by a native library. The application must be able to read and write data to the phone's internal or external storage.
The service must be accessible implicitly by other applications via the “application.service.NDK_BACKUP” action.
An application should be able to start the service with an intent containing the following fields:
In case this mode of operation is used, you should add notifications to announce the user when the operation has started and ended.
An application should also be able to use the service via a binder which implements the interface described in IBinderService.aidl found in the assignment archive.
Archives are to be given a default name which includes the current date in IS0 8601 format: e.g bak2014-03-18T21:29:15.zip. If two or more archives would be given the same name, add a number to the file name before the extension for example, the second archive would be: bak2014-03-18T21:29:15-1.zip and the third: bak2014-03-18T21:29:15-2.zip.
The application should have the following functionality through one or multiple Activities:
The service should use a native library for archiving and unarchiving. Make an API to your liking, but the implemented functionality should be as follows: