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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -