Skip to content Skip to sidebar Skip to footer

Convert View To Bitmap Filenotfoundexception Problem

I'm trying to convert my LinearLayout to a bitmap so that I can save the current layout content as an image in SD card. First, I create bitmap and canvas and attach the layout to t

Solution 1:

Have you enabled the right permissions in the Android Manifest? i.e. android.permission.WRITE_EXTERNAL_STORAGE. I was getting the same FileNotFoundException when trying to save to SD before adding the permission.

Solution 2:

After

Fileoutputfile=newFile(file, filename);

Insert this:

outputfile.createNewFile();

Post a Comment for "Convert View To Bitmap Filenotfoundexception Problem"