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

后端 未结 11 1674
囚心锁ツ
囚心锁ツ 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 05:53

    As of API 28 at least:

    1. Open Settings app in emulator
    2. Search for "Storage" select search result for it
    3. Select Photos & Videos in Storage
    4. Select Images
    5. Drag an image onto the emulator, it won't immediately show up
    6. From the AVD Manager in Android Studio, cold boot the emulator

    The photos you've dragged in are now available.

提交回复
热议问题