Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

adb push image to gallery

Push picture
# {file_path} is the full path of the picture

adb push {file_path} /sdcard/DCIM/Camera/

Notify album refresh
# {file_name} is the image file name

adb shell am broadcast -a android.intent.action.MEDIA_SCANNER_SCAN_FILE -d file:///sdcard/DCIM/Camera/{file_name}
Source by www.programmersought.com #
 
PREVIOUS NEXT
Tagged: #adb #push #image #gallery
ADD COMMENT
Topic
Name
3+3 =