Find files in the sdcard of the Genymotion emulator in Eclipse DDMS problems encountered in development---(i)

Source: Internet
Author: User
Problem Description:

Today in the study of Android in the implementation of a breakpoint to continue the download, can not find the location of the file you just downloaded, depressed ruined.
I set the path of the file download:

Printing results:

Then I look in the DDMS based on this path and query the result map:

In the storage/emulated/directory there is no discovery/0, this folder.

Workaround:

Before you fix it, look at the way we find files in SDcard in Google's own simulator or in a real machine.
Google Simulator or real machine:
is to find the Mnt/sdcard folder, and then find the corresponding file according to SDcard info.

Directory of real SDcard:/storage/sdcard

genymotion Simulator:
The way to find in genymotion is a little cumbersome:
Find Method:
(1) First find the Mnt/sdcard folder, and then according to the SDcard info find the corresponding file,

Then, according to the directory of info of the legacy file, continue to search,

Directory of the real sdcard: mnt/shell/emulated/0

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Find files in the sdcard of the Genymotion emulator in Eclipse DDMS problems encountered in development---(i)

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.