問題描述
我想在模擬器的圖庫中添加圖片.但我無法做到這一點(diǎn).這個(gè)怎么做?任何線索!雖然我已經(jīng)完成了在 stack over flow 中發(fā)布的答案,但沒有獲得成功.
I want to add picture in emulator's gallery. But i am not able to do this. How to do this? any clue! Though i have gone through a answer posted in stack over flow but didn't get success with that answer.
推薦答案
檢查 this 一旦你的模擬器中有一個(gè)虛擬 SD 卡,如果你對(duì) mtools
不滿意,或者你不知道如何在 Linux 上掛載環(huán)回設(shè)備(這真的很簡(jiǎn)單順便說一句),只需使用 adb push
上傳您的圖片.可能的例子:
Check this Once you have a virtual SD card in your emulator, if you're not comfortable with mtools
or if you don't know how to mount a loopback device on Linux (which is really easy by the way), just use adb push
to upload your images. Possible example:
adb shell mkdir /sdcard/Pictures
adb push mypic.jpg /sdcard/Pictures
這篇關(guān)于將圖片上傳到模擬器庫的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!