In My Documents activity, when an item is pressed, Field Day checks whether...
In My Documents activity, when an item is pressed, Field Day checks whether it's a directory or file. If it's a directory, then the list of files is replaced with the file in the selected directory and the parent directory of that one so the user can go back if they want. If it's a file, it opens My Document Viewer and displays the file. PDFs are rendered as bitmaps in Android, so those are handled separately than text files. My Document Viewer currently only works for PDFs. PDF is rendered!
Showing
- app/src/main/AndroidManifest.xml 8 additions, 2 deletionsapp/src/main/AndroidManifest.xml
- app/src/main/java/fieldscience/cs/earlham/edu/fieldday/MyDocumentViewer.java 51 additions, 0 deletions...ieldscience/cs/earlham/edu/fieldday/MyDocumentViewer.java
- app/src/main/java/fieldscience/cs/earlham/edu/fieldday/MyDocumentsActivity.java 26 additions, 5 deletions...dscience/cs/earlham/edu/fieldday/MyDocumentsActivity.java
- app/src/main/res/layout/activity_mydocviewier.xml 39 additions, 0 deletionsapp/src/main/res/layout/activity_mydocviewier.xml
Please register or sign in to comment