Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down