A simple example of how to download and open a PDF on Phonegap/Cordova, no fuzz, just bang on target..
Phonegap-PDF-downloader-viewer is hosted in the following web site
https://github.com/byBrick/Phonegap-PDF-downloader-viewer
If you think the Android project Phonegap-PDF-downloader-viewer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of Phonegap-PDF-downloader-viewer.
Item | Value |
---|---|
Java File Count | 4 |
Supported screen sizes | [mdpi, hdpi, xhdpi] |
Target SDK Version | 15 |
Minimum SDK Version | 10 |
Activity Count | 1 |
jar files used | android-support-v4.jar cordova-2.1.0.jar |
Required Permissions | android.permission.ACCESS_COARSE_LOCATION android.permission.ACCESS_FINE_LOCATION android.permission.ACCESS_LOCATION_EXTRA_COMMANDS android.permission.ACCESS_NETWORK_STATE android.permission.BROADCAST_STICKY android.permission.INTERNET android.permission.READ_PHONE_STATE android.permission.VIBRATE android.permission.WRITE_EXTERNAL_STORAGE |
Asset File Names | assets\www\childbrowser\icon_arrow_left.png assets\www\childbrowser\icon_arrow_right.png assets\www\childbrowser\icon_close.png assets\www\suchpdf.pdf |
There are 1 image files in Phonegap-PDF-downloader-viewer. The names of the image files are listed as follows.
ic_action_search.png
The following screenshort is generated from the image listed above.
Phonegap-PDF-downloader-viewer has the following Java source files.
com.example.phonegaptest1.MainActivity.java com.phonegap.plugins.childBrowser.ChildBrowser.java com.phonegap.plugins.downloader.Downloader.java com.phonegap.plugins.pdfViewer.PdfViewer.java