--- android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java 2010/06/26 18:16:01 924 +++ android/Side9/src/dk/thoerup/side9/Side9WidgetProvider.java 2010/06/27 10:41:10 925 @@ -175,6 +175,14 @@ FileOutputStream fos = new FileOutputStream(file); fos.write(imageData); fos.close(); + + File infoFile = new File( file.toString().replace(".jpg", ".txt")); + if (infoFile.exists()) { + infoFile.delete(); + } + fos = new FileOutputStream(infoFile); + fos.write(data.caption.getBytes()); + fos.close(); Intent rescan = new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()) ); rescan.putExtra("read-only", false);