I wrote the following code but I am sure that I did something wrong in the method onItemClick() My listview is displaying properly and when clicked upon another activity opens I
here you didnt define any location of your image. define the location string and put in the file and check it.
String location="storage/img1.jpg"; File imgfile = new File(location);