incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject 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 Wed, 20 Jun 2012 22:39:33 GMT
Updated Branches:
  refs/heads/mediascanner 2321a3ffe -> 913459a64


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/913459a6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/913459a6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/913459a6

Branch: refs/heads/mediascanner
Commit: 913459a642eff60ecad30cc5dd7f0fdc1c705974
Parents: 2321a3f
Author: Fil Maj <maj.fil@gmail.com>
Authored: Wed Jun 20 15:40:40 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Wed Jun 20 15:40:40 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/913459a6/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 b41d79b..a94e984 100755
--- a/framework/src/org/apache/cordova/CameraLauncher.java
+++ b/framework/src/org/apache/cordova/CameraLauncher.java
@@ -199,9 +199,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);
         }
@@ -306,7 +306,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