I am new to android. I am using Intent to show full screen image and swipe between the images. The code is like:
(I am using grid to display images, Once I click on Image in grid I am calling intent)
Gridview_sponsor = (GridView) findViewById(R.id.gridViewSponsor);
Gridview_sponsor
.setOnItemLongClickListener(new OnItemLongClickListener() {
public boolean onItemLongClick(AdapterView<?> arg0,
View arg1, int pos, long id) {
AlertDialog diaBox = AskOption(imagesName.get(pos)
.toString());
diaBox.show();
return true;
}
});
Gridview_sponsor.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> arg0, View arg1,
int position, long arg3) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(
Uri.parse("file://" + imagesName.get(position)),
"image/*");
startActivity(intent);
}
});
Previously it was working properly. But after uninstalling existing app it stop swapping.
In above code imagesName.get(position)
contains the image path which I am assigning to ACTION_VIEW
intent. But it is only showing the image in full screen and zoom in ,zoom out functionality is working fine.But the images are not getting swipe from that folder