You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/05/30 15:53:50 UTC

android commit: CB-837: CaptureCB - mediaFile.fullPath does not resolve to file

Updated Branches:
  refs/heads/master ca1a322c7 -> d79403e35


CB-837: CaptureCB - mediaFile.fullPath does not resolve to file


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

Branch: refs/heads/master
Commit: d79403e352498df4bf0a8a2dbc8498ba957b5ea4
Parents: ca1a322
Author: macdonst <si...@gmail.com>
Authored: Tue May 29 15:55:21 2012 -0400
Committer: macdonst <si...@gmail.com>
Committed: Wed May 30 09:38:55 2012 -0400

----------------------------------------------------------------------
 framework/src/org/apache/cordova/Capture.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/d79403e3/framework/src/org/apache/cordova/Capture.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/Capture.java b/framework/src/org/apache/cordova/Capture.java
index ce7e9de..9809ed1 100644
--- a/framework/src/org/apache/cordova/Capture.java
+++ b/framework/src/org/apache/cordova/Capture.java
@@ -353,7 +353,7 @@ public class Capture extends Plugin {
         try {       
             // File properties
             obj.put("name", fp.getName());
-            obj.put("fullPath", fp.getAbsolutePath());
+            obj.put("fullPath", "file://" + fp.getAbsolutePath());
             
             // Because of an issue with MimeTypeMap.getMimeTypeFromExtension() all .3gpp files 
             // are reported as video/3gpp. I'm doing this hacky check of the URI to see if it