This is an old revision of the document!


Warm-up assignment

Description

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.

Service

The service must be accessible implicitly by other applications via the “application.service.NDK_BACKUP” action. An application can send a request via startService, with an intent containing the following fields:

  • “operation” - String, containing either “archive” or “unarchive” depending on the operation
  • “path” - String, path of the folder or file to be archived or the path to the folder where the contents of the archive should be extracted
  • “archive” - String, used only by “unarchive”, the name of the archive to be processed

In case this mode of operation is used, you can add notifications to announce the user when the operation has ended.

An application can use the service via a binder which implements the interface described in IBinderService.aidl found in the assignment archive.

Application

Library

Points

  • 3p Service
    • 1p Implementing onStartCommand functionality
    • 1p Implementing the binder functions
    • 1p Notifications
  • 4p Application
    • 1p Selecting the backup folder
    • 1p Archiving and unarchiving
    • 2p File explorer for selecting locations used in previous two tasks
  • 4p Native library
    • 1p archiving
    • 1p unarchiving
    • 1p Compression
    • 1p Using a standard format for the archive (tar, tar.gz, zip, 7zip, etc.)
ndk/assignments/warmup.1395264669.txt.gz · Last modified: 2014/03/19 23:31 by petre.eftime
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0