Android: How to share images from package directory?
<p>I want to share multiple image from application package directory. My files locate in following path as like. <code>/data/data/com.example</code>. Now i can get images path. But not attach any images to sharing application. as like whats app, Message and Facebook etc. I have implemented permition in manifest file. See below my try. </p>

<pre><code>            Intent intent = new Intent(Intent.ACTION_SEND);
            intent.setType("image/*");
            intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(saveList.get(0).toString())));
            startActivity(Intent.createChooser(intent, "Share"));
            Intent intent = new Intent();
            intent.setAction(Intent.ACTION_SEND_MULTIPLE);
            intent.putExtra(Intent.EXTRA_SUBJECT, "Here are some files.");
            intent.setType("image/*"); /* This example is sharing jpeg images. */
            ArrayList&lt;Uri&gt; files = new ArrayList&lt;Uri&gt;();
            for(String path : saveList /* List of the files you want to send */) {
                File file = new File(path);
                Uri uri = Uri.fromFile(file);
                files.add(uri);
            }

            intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, files);
            startActivity(intent);  
</code></pre>

<p>Implemented permission is below.</p>

<pre><code> &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
 &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;  
</code></pre>