The Android screenshot save location is not in the selected SD card

Source: Internet
Author: User

Saveimageinbackgroundtask method to modify Globalscreenshot.java: String Imagedir = Environment.getexternalstoragepublicdirectory (
environment.directory_pictures). GetAbsolutePath ();
1, JB2 modified to: String Imagedir = Storagemanager.getdefaultpath () + '/' + environment.directory_pictures; 2, JB3. TDD modified to: Import com.mediatek.storage.StorageManagerEx is also required; String Imagedir = Storagemanagerex.getdefaultpath () + '/' + environment.directory_pictures; 3, KK modified to: (1) Import import com.mediatek.storage.StorageManagerEx; (2) Mscreenshotdir = new File ( Storagemanagerex.getdefaultpath () + "/" +environment.directory_pictures, Screenshots_dir_name);(3) in Frameworks/base /packages/systemui/androidmanifest.xml Add the following code:<uses-permission android:name= "Android.permission.WRITE_MEDIA _storage "/>

The Android save location is not in the selected SD card

Related Article

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.