/[projects]/android/Side9/src/dk/thoerup/side9/PictureOverview.java
ViewVC logotype

Diff of /android/Side9/src/dk/thoerup/side9/PictureOverview.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 924 by torben, Sat Jun 26 08:21:22 2010 UTC revision 925 by torben, Sun Jun 27 10:41:10 2010 UTC
# Line 28  public class PictureOverview extends Act Line 28  public class PictureOverview extends Act
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                  }                  }

Legend:
Removed from v.924  
changed lines
  Added in v.925

  ViewVC Help
Powered by ViewVC 1.1.20