Currently, I’m using this method to query all photos user’s phone has: I wanted to allow the user to filter the query by file names, so I added selection & selectionArgs part. (getSelectionArgs() returns “” if there is no user input. It returns the input if there is.) This method has problems when user enters “s” or “d” or “%”.