I am creating GIF based on images in Android. I create the .gif file and save it with FileOutputStream
but I don't see it anywhere on sdcard or in gallery app.
File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "test.gif");
FileOutputStream outStream = null;
try{
outStream = new FileOutputStream(file);
outStream.write(generateGIF());
outStream.close();
Log.v("Creating gif", "Gif saved");
}catch(Exception e){
e.printStackTrace();
}
return null;
generateGIF returns byteArray and everything works without error. Did I missed something?