 <p>Use <a href="http://developer.android.com/reference/android/content/Context.html#getFileStreamPath(java.lang.String)" rel="nofollow">getFileStreamPath()</a> like this:</p> <pre><code>String fileName = "webImage"; //... Uri uri = Uri.fromFile(getFileStreamPath(fileName)); </code></pre>