• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android internal storage

I want to store captured images in phone memory.I stored it using the following code:

FileOutputStream outStream1 = null;

String filename = "pics.jpg";


outStream1 = openFileOutput(filename, Context.MODE_WORLD_WRITEABLE);

outStream1.write(data);

outStream1.close();


But the image is not visible in gallery.How will it be visible in gallery?
Please Help me.
 
Back
Top Bottom