I am new to android programming so I will be really grateful if someone helps me.
I am trying to implement steganography in android but my problem is I don't know how to insert images in android. Because of which I am getting "No media found"
. Please help me with this.
I tried
c:> adb push c:\image1.png /sdcard/image1.png
But I get this in the Command Prompt.
failed to copy 'c:\image1.png' to 'sdcard/image1.png' : Read-only file system
I had the same problem, so in case anyone lands on this page here is how I solved it
Hope this helps :)
The correct directory for my emulator is mnt/sdcard
. This works for me:
adb push README mnt/sdcard
Also note that you can explore directories using adb shell ls <path>
, which might have tipped you off to the right path.
Edit - apparently sdcard
is a symlink to mnt/sdcard
and works for me as well. Using a file named image1.png
is also working. Maybe there is a problematic file already located at that location for you?
Edit 2 - I think you also need to have the USB mounting option turned off when you use adb to push files. It sounds like you have this on given your comment about the gallery not finding your media.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With