Too Easy - Using a ContentProvider to Send File from Assets folder

I needed to allow the user to send an image included with an app, using a ACTION_SEND intent. The Android security framework doesn't allow one application to access the files in another application's assets folder. However, an app can expose this information by implementing a content provider.

A content provider can do some fancy stuff, but for something as simple as allowing another application to read a particular file, it is surprisingly trivial.

Define the "Authority"

You need to define an "authority" that will cause your content provider to get queried when another apps needs the file.

The purpose of this page is to summarize in one place some of the interactive visualizations I have worked on. Most of these were built...

"When you start on your journey to Ithaca, then pray that the road is long, full of adventure, full of knowledge... Always keep Ithaca fixed in your mind. To arrive there is your ultimate goal. But do not hurry the voyage at all." (from "Ithaca", by C. P. Cavafy)