incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [3/7] android commit: added . in front of the temp files passed into camera app. presumably this hsould stop the gallery app from picking it up
Date Thu, 21 Jun 2012 19:37:01 GMT
added . in front of the temp files passed into camera app. presumably this hsould stop the
gallery app from picking it up


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/ab3347d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/ab3347d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/ab3347d2

Branch: refs/heads/master
Commit: ab3347d25d63ae48dafd7f1e705e4edd0a4fa8f3
Parents: 66872de
Author: Fil Maj <maj.fil@gmail.com>
Authored: Wed Jun 20 15:40:40 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu Jun 21 12:09:51 2012 -0700

----------------------------------------------------------------------
 .../src/org/apache/cordova/CameraLauncher.java     |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ab3347d2/framework/src/org/apache/cordova/CameraLauncher.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CameraLauncher.java b/framework/src/org/apache/cordova/CameraLauncher.java
index 0e86d2c..6838983 100755
--- a/framework/src/org/apache/cordova/CameraLauncher.java
+++ b/framework/src/org/apache/cordova/CameraLauncher.java
@@ -202,9 +202,9 @@ public class CameraLauncher extends Plugin implements MediaScannerConnectionClie
     private File createCaptureFile(int encodingType) {
         File photo = null;
         if (encodingType == JPEG) {
-            photo = new File(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity()),
"Pic.jpg");
+            photo = new File(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity()),
".Pic.jpg");
         } else if (encodingType == PNG) {
-            photo = new File(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity()),
"Pic.png");
+            photo = new File(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity()),
".Pic.png");
         } else {
             throw new IllegalArgumentException("Invalid Encoding Type: " + encodingType);
         }
@@ -310,7 +310,7 @@ public class CameraLauncher extends Plugin implements MediaScannerConnectionClie
         ExifHelper exif = new ExifHelper();
         try {
             if (this.encodingType == JPEG) {
-                exif.createInFile(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity())
+ "/Pic.jpg");
+                exif.createInFile(DirectoryManager.getTempDirectoryPath(this.cordova.getActivity())
+ "/.Pic.jpg");
                 exif.readExifData();
             }
         } catch (IOException e) {


Mime
View raw message