When I am calling this function there is no image in image view
bitmapFactory.decodefile(filename)
showing null .. please help for this.
Here is my cod
It's simple: your file either is not an image or image that is not supported by Android's Bitmap implementation, or you path is invalid.
See documentation for BitmapFactory.decodeFile(String file):
Returns
the resulting decoded bitmap, or null if it could not be decoded.
Usually when bitmap cannot be decoded some logs are printed to logcat. Inspect them carefully.
I was missing run time permission check on API level greater than 22. Starting Marshmellow