How to add an image to the emulator gallery in android studio?

后端 未结 11 1666
囚心锁ツ
囚心锁ツ 2020-12-13 05:38

I am developing an image filter app. But can\'t really try it if i don\'t have any images.

I know that i can test it in the phone, but it\'s not the same, since I n

11条回答
  •  情话喂你
    2020-12-13 06:16

    Copy a file to the emulator:

    Open emulator and File Explorer (Finder in Mac) side by side. Choose the file you want to copy then Drag and Drop the file onto the emulator. The selected file will be copied to the Downloads folder of the emulator.

    How to view files in Android Studio:

    Android Studio has Device Explorer to explore emulator content (Earlier we used to have DDMS, which is deprecated in Studio 3+). Goto View -> Tools Window -> Device File Explorer and you can see the explorer window. Goto Storage -> emulated -> 0 ->Download, if you don't see the file here, please restart the emulator and that's it.

    Note: You don't see Device Explorer if you have opened a Flutter project.

    You can also view the image files in Android Studio by double-clicking the file in the emulator.

提交回复
热议问题