Update plugin writers' documentation

Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/cf97ac0c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/cf97ac0c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/cf97ac0c

Branch: refs/heads/master
Commit: cf97ac0ca384c08e7baa0113661d147c24cc97d4
Parents: 1b4a306
Author: Ian Clelland <[email protected]>
Authored: Fri Feb 21 11:43:19 2014 -0500
Committer: Ian Clelland <[email protected]>
Committed: Fri Feb 21 11:43:19 2014 -0500

----------------------------------------------------------------------
 doc/plugins.md | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/cf97ac0c/doc/plugins.md
----------------------------------------------------------------------
diff --git a/doc/plugins.md b/doc/plugins.md
index f697b7e..496c8d5 100644
--- a/doc/plugins.md
+++ b/doc/plugins.md
@@ -25,10 +25,7 @@ On Android, the simplest method to convert a `cdvfile://` 
URL to a filesystem pa
 
     // Obtain a file:/// URL representing this file on the device,
     // or the same URL unchanged if it cannot be mapped to a file
-    URI fileURI = resourceApi.remapUri(cdvfileURL);
-
-    // Obtain a File object, or null if the file cannot be mapped
-    File deviceFile = resourceApi.mapUriToFile(cdvfileURL);
+    Uri fileURL = resourceApi.remapUri(Uri.parse(cdvfileURL));
 
 It is also possible to use the File plugin directly:
 

Reply via email to