Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing device/emulator file system In Android Studio

Tags:

android

ddms

I have a program that saves a .JSON file on the emulator or device I have for debugging my android studio program. I want to copy that file off of the device but can't seem to find a way to do it.

I know it is reasonably easy in Eclipse but can't find a way to do it in Studio.

like image 886
Toby Sterling Avatar asked Oct 30 '14 18:10

Toby Sterling


Video Answer


2 Answers

Android Studio 3.0 and newer versions

1. Select the **Device File Explorer** tab from bottom-right in Android Studio.

enter image description here

  1. Select your emulator.
  2. To copy a file from the device, locate the file in the File Explorer and right click on it > Select Save As.
  3. To copy a file to the device, right click on desired directory > Select Upload.

For older versions of Android Studio

You can import/export files to/from the device.

  1. Select the Devices tab.

enter image description here

  1. Select your emulator.
  2. To copy a file from the device, locate the file in the File Explorer and click the Pull file button.
  3. To copy a file to the device, click the Push file button on the File Explorer tab.

Reference

like image 103
Chintan Shah Avatar answered Sep 23 '22 06:09

Chintan Shah


In latest Android Studio if the "Device file explorer" is not visible, you can use view -> Tool Window -> Device File Explorer

like image 37
Vinod L P Avatar answered Sep 20 '22 06:09

Vinod L P