GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added option for android 10 · CodeHunterDev/Android-FilePicker@04ccb2c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • README.md
  • app/src/main
    • AndroidManifest.xml
    • java/vi/filepicker
      • MainActivity.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[ ![Latest Version](https://api.bintray.com/packages/droidninja/maven/com.droidninja.filepicker/images/download.svg) ](https://bintray.com/droidninja/maven/com.droidninja.filepicker/_latestVersion)
44

55
A filepicker which allows to select images and videos with flexibility. It also supports selection of files by specifying its file type. For using this library, you have to migrate your project to [androidx](https://developer.android.com/jetpack/androidx/migrate) or you can use older version(2.1.5). Check out app module for example.
6+
For Android 10 devices using document picker, you will need to enable `android:requestLegacyExternalStorage="true"` option in your manifest file. Document picker will get deprecated soon since this flag will not in Android 11.
67

78
![demo](https://image.ibb.co/iRpztv/device_2017_03_10_164003.png)
89
![demo](https://image.ibb.co/m75uRF/device_2017_03_10_163900.png)
Collapse file

‎app/src/main/AndroidManifest.xml‎

Copy file name to clipboardExpand all lines: app/src/main/AndroidManifest.xml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
android:icon="@mipmap/ic_launcher"
1212
android:label="@string/app_name"
1313
android:supportsRtl="true"
14+
android:requestLegacyExternalStorage="true"
1415
android:theme="@style/AppTheme">
1516
<activity android:name=".MainActivity">
1617
<intent-filter>
Collapse file

‎app/src/main/java/vi/filepicker/MainActivity.java‎

Copy file name to clipboardExpand all lines: app/src/main/java/vi/filepicker/MainActivity.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void onPickPhoto() {
165165

166166
public void onPickDoc() {
167167
String[] zips = {"zip", "rar"};
168-
String[] pdfs = {"pdf"};
168+
String[] pdfs = {"aac"};
169169
int maxCount = MAX_ATTACHMENT_COUNT - photoPaths.size();
170170
if ((docPaths.size() + photoPaths.size()) == MAX_ATTACHMENT_COUNT) {
171171
Toast.makeText(this, "Cannot select more than " + MAX_ATTACHMENT_COUNT + " items",
@@ -177,7 +177,7 @@ public void onPickDoc() {
177177
.setActivityTheme(R.style.FilePickerTheme)
178178
.setActivityTitle("Please select doc")
179179
.addFileSupport("ZIP", zips)
180-
.addFileSupport("PDF", pdfs, R.drawable.pdf_blue)
180+
.addFileSupport("AAC", pdfs, R.drawable.pdf_blue)
181181
.enableDocSupport(true)
182182
.enableSelectAll(true)
183183
.sortDocumentsBy(SortingTypes.name)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.