7.2.7. Saving the Drawing to the Device’s Gallery

The app provides a Save option that allows the user to save a drawing into the device’s gallery—the default location in which photos taken with the device are stored. A ContentResolver (package android.content) enables the app to read data from and store data on a device. You’ll use a ContentResolver (Section 7.6) and the method insertImage of class MediaStore.Images.Media to save an image into the device’s Gallery. The MediaStore manages media files (images, audio and video) stored on a device.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset