Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加手机图片到相册 #62

Open
codeskyblue opened this issue Mar 19, 2019 · 0 comments
Open

添加手机图片到相册 #62

codeskyblue opened this issue Mar 19, 2019 · 0 comments

Comments

@codeskyblue
Copy link

参考 https://blog.csdn.net/u011014032/article/details/46331687

ADB直接传图片到手机上,手机相册是看不到的。因为安卓有个广播机制,传入图片后还需要通知这个广播机制才能在图库里查看到传入的图片。

adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///storage/sdcard0/picture/test.jpg 

其中/storage/sdcard0/picture/test.jpg就是该图片的路径

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant