camera - Android Image Not saving to sdcard -


after pressing capture button , image should save in sdcard, taking snapshot not saving image that, how can put capture button wherever want? have overlay in imageview , need put button on overlay.

use 1 store image in sd card

     public void save(bitmap image)                      {             file sdcard = environment.getexternalstoragedirectory();             file f = new file (sdcard, imagename);             fileoutputstream out=null;             try {                 out = new fileoutputstream(f);             } catch (filenotfoundexception e) {                 // todo auto-generated catch block                 e.printstacktrace();             }             image.compress(bitmap.compressformat.png, 90, out);             try {                 out.flush();                 out.close();             } catch (ioexception e) {                 e.printstacktrace();             } } 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -