From a4b0805ace8e963063b04516539a0bea5acbe8af Mon Sep 17 00:00:00 2001 From: macdonst Date: Mon, 7 Jan 2013 20:47:52 -0500 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sample use was calling the video player plugin.  --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 89726e4..471c812 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,9 @@ Sample use: ---------- ```````javascript window.plugins.fileOpener.open("file:///sdcard/Android/data/com.example.application/document.doc"); -window.plugins.videoPlayer.play("file:///sdcard/Android/data/com.example.application/manual.pdf"); -window.plugins.videoPlayer.play("file:///sdcard/Android/data/com.example.application/presentation.ppt"); -window.plugins.videoPlayer.play("file:///sdcard/Android/data/com.example.application/image.jpg"); +window.plugins.fileOpener.open("file:///sdcard/Android/data/com.example.application/manual.pdf"); +window.plugins.fileOpener.open("file:///sdcard/Android/data/com.example.application/presentation.ppt"); +window.plugins.fileOpener.open("file:///sdcard/Android/data/com.example.application/image.jpg"); ``````` After you run the command above, Android device will either open the file with proper external application installed on your device or ask you which application to use, if you haven't set before which application to use to open the specific type of file. What is great, when you exit the external app, Android will return to your application.