/android-delete

Primary LanguageJavaApache License 2.0Apache-2.0

Google Drive Android API Delete Sample.

Google Drive Android API Delete Sample app demonstrates deleting of DriveResources via the Google Drive Android API available in Google Play Services. Only DriveResources accessible to an app and can owned by the authenticated user can be deleted. For full API details check Google Drive Android API Reference.

How deleting files in works.

Delete is permanent and it bypasses trash. The authenticated user must be the owner of the resource. If the DriveResource being deleted is a DriveFolder then The application must has access to all descendants. Delete is intended for app data, for user data consider using Trash since it is recoverable while Delete is not.

Using the sample.

This sample (Simple Math) generates simple math problems and allows the user to submit answers. Problems and answers are stored in app data. If the user hits the reset button the saved problems are deleted.