Store Bitmap Screenshot in Android Cache
<p>Can someone please help me make my code below store to cache rather than my sd card.  I am taking a screenshot of my application to use for sharing on social media.</p>

<pre><code>
// image naming and path  to include sd card
                String mPath = Environment.getExternalStorageDirectory().toString() + "/" + ACCUWX.IMAGE_APPEND;   

                // create bitmap screen capture
                Bitmap bitmap;
                View v1 = mCurrentUrlMask.getRootView();
                v1.setDrawingCacheEnabled(true);
                bitmap = Bitmap.createBitmap(v1.getDrawingCache());
                v1.setDrawingCacheEnabled(false);

                OutputStream fout = null;
                imageFile = new File(mPath);

                try {
                    fout = new FileOutputStream(imageFile);
                    bitmap.compress(Bitmap.CompressFormat.JPEG, 90, fout);
                    fout.flush();
                    fout.close();

                } catch (FileNotFoundException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
</code></pre>

<p>And here is my Social Media code to share the screenshot:</p>

<pre><code>
Intent socialIntent = new Intent(Intent.ACTION_SEND); 
                    socialIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 
                    Uri uri = Uri.fromFile(new File(mPath));

                    socialIntent.putExtra(Intent.EXTRA_STREAM, uri);
                    socialIntent.setType("image/jpeg");

                    startActivity(Intent.createChooser(socialIntent, "How do you wanna share?"));
</code></pre>
