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)