Say if I have filename 1234567.png on the internal filesystem - say I want to send it to the user with a share intent
as CoolPicture.png - ie subclass fileprovider and replace the query method.
Is using a matrix cursor based on the cursor from super a good plan?
It seems like DISPLAY_NAME
and SIZE
are the only columns but doesn't seem to confirm if SIZE
is int or string.
- http://developer.android.com/reference/android/provider/OpenableColumns.html
- http://developer.android.com/reference/android/support/v4/content/FileProvider.html
I'll plan to post my code after I answer it, I just wanted to get an idea of best practice, and perhaps contribute. Thanks