I am working on android application in which i am storing image in data bases, and on displaying time my url is like : http://files.parsetfss.com/ee6c904a-c395-4a92-bb80-9fe687901411/tfss-4a6bdb3c-5818-4057-964f-99bcf23f3d35-1425711426766.jpg
I have seen codes to open image viewer by using File name like the following code:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.fromFile(file));
intent.setDataAndType(Uri.fromFile(file),"image/png");
mActivity.startActivity(intent);
But the problem is that my url is not in file format, at the time of image displaying i am using the following code:
String url "";
url = data.getText(); // Coming from the data base as a link
Picasso.with(view.getContext()).load(url).into(mHolder.mImgReceived);
I need to open image viewer from that link which is coming from databases http://files.parsetfss.com/ee6c904a-c395-4a92-bb80-9fe687901411/tfss-4a6bdb3c-5818-4057-964f-99bcf23f3d35-1425711426766.jpg
. At the time of displaying it with picasso it is showing me the picture, i need to open the same image with image viewer. Please help me out here.