This answer is important:(taken from the link below)
"You are using MediaStore.Images.Media.EXTERNAL_CONTENT_URI which is only the external storage.For the internal there is MediaStore.Images.Media.INTERNAL_CONTENT_URI."
Loading all the images from gallery into the Application in android