28 |
public void onItemClick(AdapterView<?> parent, View v, int position, long id) { |
public void onItemClick(AdapterView<?> parent, View v, int position, long id) { |
29 |
String uri = "file://" + images.getImagePath(position); |
String uri = "file://" + images.getImagePath(position); |
30 |
|
|
31 |
Intent i = new Intent(Intent.ACTION_VIEW); |
//Intent i = new Intent(Intent.ACTION_VIEW); |
32 |
i.setDataAndType(Uri.parse(uri), "image/jpeg"); |
//i.setDataAndType(Uri.parse(uri), "image/jpeg"); |
33 |
|
|
34 |
|
Intent i = new Intent(PictureOverview.this, dk.thoerup.side9.PictureView.class); |
35 |
|
i.putExtra("files", images.getImagePaths()); |
36 |
|
i.putExtra("index", position); |
37 |
|
|
38 |
startActivity(i); |
startActivity(i); |
39 |
} |
} |