I'm trying to open an image using intent. The path of the image in my storage is /storage/emulated/0/nitp/download/logo.png.
My code is
Intent intent = new Intent();
intent.setAction(Intent.ACTION_DEFAULT);
intent.setDataandType(Uri.parse("/storage/emulated/0/nitp/download/logo.png"),"image/*");
startActivity(intent);
I also tried putting file://storage/emulated/0/nitp/download/logo.png and content://storage/emulated/0/nitp/download/logo.png
What is the path I should use?
Solved Have to use file:///storage/emulated/0/nitp/downloads/logo.png