Refresh your phone's memory to re-read your phone memory to identify memory files

Source: Internet
Author: User

Recently encountered a problem: push the picture to the phone memory, galley app can not read the memory of the phone in real-time, so just push the file display does not come out, only ADB reboot mobile phone to re-read the phone memory, so that can be seen in the app inside.

Always restart the phone is not very good, and the impact of the test speed, so find a way to refresh the memory of the phone, that is, after push the picture, the execution

ADB shell am broadcast-a android.intent.action.media_mounted-d file:///mnt/shell/emulated/0

, you can achieve the re-read memory operation. The mnt/shell/emulated/0 path may be variable.

Need to use the DDMS inside the SDK to view, double hit open ddms.bat, click

Refresh your phone's memory to re-read your phone memory to identify memory files

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.