Solve the Problem of no SD card photo

Source: Internet
Author: User

<! --
@ Page {margin: 2 cm}
Pre {font-family: "dejavu sans "}
P {margin-bottom: 0.21}
-->

In the camera package. 1. modify imagemanager. modify public static final string camera_image_bucket_name = "/data/COM. android. camera/Temp "; changed to environment. getexternalstoragedirectory (). tostring () + "/dcim/camera"; 2. modify the return value of calculatepicturesremaining () in checkstorage. The return value must be a positive integer greater than 1. Currently, the value 703 is added. In addimage () of imagemanager. Java, try {file dir = new file (directory); If (! Dir. exists () dir. mkdirs (); file = new file (directory, filename); outputstream = new fileoutputstream (File); add process P; P = runtime.getruntime(cmd.exe C ("chmod 777" + DIR); exported photo: ADB pull src_path dst_path

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.