Skip to content Skip to sidebar Skip to footer

Android - Sending Image Via Intent

Refer page for permission part. I have the first app which has the following : File imagePath = new File(getApplicationContext().getFilesDir(), 'images'); File newFile = new File(i

Solution 1:

The problem was with the location of the image. To use files-path, one needs to put files under files/ directory. So my images/ directory should have been under there, with the pushed file at :

app-dir-path/files/images/earth.jpg

Post a Comment for "Android - Sending Image Via Intent"