UstadMobile / UstadMobile

Teach, learn, and share: online or offline
https://www.ustadmobile.com
GNU Affero General Public License v3.0
29 stars 19 forks source link

Create DataBinder for selecting an Image [2pts] #115

Closed mikedawson closed 4 years ago

mikedawson commented 4 years ago

Some screens (e.g. person, possibly class, content, assignment, etc) require the possibility to select an image. All our current CRUD is based on data binding (e.g. Android data binding and Angular). Hence we want to be able use an image with data binding.

The databinder should read/write a string uri using two way data binding. The binder should allow the user to select an image from the gallery or take a new picture using the camera. The binder must also handle requesting permission when required.

Finally the binder (or edit fragment etc) must handle cleaning up any temporary files generated when it is safe to delete them.

mikedawson commented 4 years ago

Committed to branch dev-crud-pic with commit 77064c9 .