Save bitmap canvas as png file in phone internal memory
<p>I am trying to save the bitmap canvas drawing to  png file to phone's internal memory as the phone I am using doesn't have external memory. But I am unable to see either in gallery or in file explorer. Help me in this.
Below is the code I am using.</p>

<pre><code>File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath().toString() + "/note.png");

Log.i(TAG,"PATH = " +file.getAbsolutePath());

try 
{

mBitmap.compress(Bitmap.CompressFormat.PNG, 100, new FileOutputStream(file));

} 
catch (Exception e) 
{

e.printStackTrace();

}
</code></pre>