Capture image with camera in android and save with a custom name

前端 未结 3 569
被撕碎了的回忆
被撕碎了的回忆 2021-01-07 10:36

i have create an android application that will capture picture and save in sdcard folder,now i want to save the image with a custom name.

import java.io.Byte         


        
3条回答
  •  情书的邮戳
    2021-01-07 10:37

    You need to put fileName as Intent Extras -

    cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, "android.jpg");
    

提交回复
热议问题