Android Question emulator and folder

3394509365

Active Member
Licensed User
Longtime User
I am using the emulator and I need to save photos in a specific folder that I create from code.

But on the PC where can I find the folder?

this is the error log:

B4X:
java.io.FileNotFoundException: /storage/emulated/0/StageList/Repertorio/Camera.jpg (No such file or directory)
 

LucaMs

Expert
Licensed User
Longtime User
Already answered in the Italian Forum (in which the same question was asked).

1584715281165.png


(ADB Pull & Push commands)
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
It's good that it was posted even here on the International.
More experienced members could provide other solutions.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
So for completeness
adb pull /storage/emulated/0/MyFolder/Camera.jpg myphoto.jpg
In this case is considered to have only 1 Emulator running or only 1 Device connected.
This command will copy Camera.jpg renaming it to myphoto.jpg
It will be copied in the ADB folder from where command start.
Of course path must be adapted to your needs.
PULL command is used to copy a file from Emulator (or device) to PC.
PUSH command to copy a file from PC to Emulator (or device).
 
Last edited:
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Android Studio contain a File Explorer that make possible to browse the emulator content.
Not completely but better than nothing if absolutely needed.
Something similar (but Deprecated after this new Tool) is contained in the Android SDK.
You can find it in c:\Android\Tools\monitor.bat (of course use your sdk path).
In my test this last method was unable to access certain folders that instead are accessible with Android Studio.
Anyway I will not make further test about this thing, for now, just because I don't have this need.
Hopefully I gave an hint to start for others that could need it.
 
Upvote 0
Top