How to capture the image and save it in sd card

后端 未结 2 886
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 23:59

hey guys i am using the following code to access camera from my application. The application is able to access the camera i have also added a button whose onclicklistener ad

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-10 00:43

    Just a suggestion, use EXIF on jpg before uploading it to the server. I found uploading images tediously slow because of the quality of todays smartphone cameras. A simple solution is using an exif reading program to extract the thumbnail of the jpeg, save said thumbnail as a new jpeg, and upload that. It's identical to the original photo yet much smaller (under 100kb). I am not sure if it's image quality you want, but if not, and to upload lots of pics, use the exif method. I programmed on python sl4a and used EXIF.py, but I'm sure there's similar in Java.

提交回复
热议问题