incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject [4/4] android commit: CB-837: CaptureCB - mediaFile.fullPath does not resolve to file
Date Wed, 30 May 2012 21:47:45 GMT
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/CordovaWebView
Commit: d79403e352498df4bf0a8a2dbc8498ba957b5ea4
Parents: ca1a322
Author: macdonst <simon.macdonald@gmail.com>
Authored: Tue May 29 15:55:21 2012 -0400
Committer: macdonst <simon.macdonald@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 


Mime
View raw message