You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/10/16 22:24:12 UTC

[3/5] docs commit: CB-5005 plugin doc update for File

CB-5005 plugin doc update for File


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/931aff90
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/931aff90
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/931aff90

Branch: refs/heads/master
Commit: 931aff908a4802174ed30c48a2bb07305f32f3b8
Parents: da26714
Author: mbillau <mi...@gmail.com>
Authored: Tue Oct 8 14:09:42 2013 -0400
Committer: mbillau <mi...@gmail.com>
Committed: Tue Oct 8 14:09:42 2013 -0400

----------------------------------------------------------------------
 docs/en/edge/cordova/file/file.md | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/931aff90/docs/en/edge/cordova/file/file.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/file/file.md b/docs/en/edge/cordova/file/file.md
index fafd625..4836fd1 100644
--- a/docs/en/edge/cordova/file/file.md
+++ b/docs/en/edge/cordova/file/file.md
@@ -50,11 +50,12 @@ Interface, to add or remove this feature for a project:
         [ 'org.apache.cordova.file' ]
         $ cordova plugin rm org.apache.cordova.file
         
-To use the file-transfer plugin you must add that separately.
+To use the file-transfer plugin you must add that separately. Do not add the file plugin manually because it will be automatically added as a dependency plugin by the CLI. 
         
         $ cordova plugin add org.apache.cordova.file-transfer
         $ cordova plugin ls
-        [ 'org.apache.cordova.file-transfer' ]
+        [ 'org.apache.cordova.file',
+          'org.apache.cordova.file-transfer' ]
         $ cordova plugin rm org.apache.cordova.file-transfer
 
 These commands apply to all targeted platforms, but modify the
@@ -62,14 +63,24 @@ platform-specific configuration settings described below:
 
 * Android
 
+        (after adding just the file plugin)
+        (in app/res/xml/config.xml)
+        <feature name="File">
+            <param name="android-package" value="org.apache.cordova.FileUtils" />
+        </feature>
+
+        (in app/AndroidManifest.xml)
+        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
+        
+        (after adding just the file-transfer plugin)
         (in app/res/xml/config.xml)
         <feature name="File">
             <param name="android-package" value="org.apache.cordova.FileUtils" />
         </feature>
         <feature name="FileTransfer">
-            <param name="android-package" value="org.apache.cordova.FileTransfer" />
+            <param name="android-package" value="org.apache.cordova.filetransfer.FileTransfer" />
         </feature>
-
+        
         (in app/AndroidManifest.xml)
         <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />