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

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

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

revision 924 by torben, Sat Jun 26 18:16:01 2010 UTC revision 925 by torben, Sun Jun 27 10:41:10 2010 UTC
# Line 175  public class Side9WidgetProvider extends Line 175  public class Side9WidgetProvider extends
175                                  FileOutputStream fos = new FileOutputStream(file);                                  FileOutputStream fos = new FileOutputStream(file);
176                                  fos.write(imageData);                                  fos.write(imageData);
177                                  fos.close();                                  fos.close();
178                                    
179                                    File infoFile = new File( file.toString().replace(".jpg", ".txt"));
180                                    if (infoFile.exists()) {
181                                            infoFile.delete();
182                                    }
183                                    fos = new FileOutputStream(infoFile);
184                                    fos.write(data.caption.getBytes());
185                                    fos.close();
186    
187                                  Intent rescan = new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()) );                                  Intent rescan = new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()) );
188                                  rescan.putExtra("read-only", false);                                                                                              rescan.putExtra("read-only", false);                                                            

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

  ViewVC Help
Powered by ViewVC 1.1.20