File Chooser

Description
It’s a Java source code that can be easy integrated into your Android project.
How to Integrate
1. Copy all files from app/src/main/res/drawable/ folder and all next files into your project:/app/src/main/java/com/filechooser/app/FileChooser.java /app/src/main/res/values/file_chooser_strings.xml /app/src/main/res/layout/file_chooser.xml /app/src/main/res/layout/file_chooser_item.xml /app/src/main/res/xml/file_provider.xml2. Add permission into AndroidManifest.xml:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />3. Add chooser activity into AndroidManifest.xml:
<activity android:name=".FileChooser" .../>4. Add provider into AndroidManifest.xml:
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_provider"/>
</provider>
5. Add code to open chooser activity into browse button listener:
Intent intent = new Intent(this, FileChooser.class);
intent.putExtra("path", "/storage"); // path to opened folder
intent.putExtra("showFiles", true); // show or hide files (true/false)
intent.putExtra("returnFile", true); // return file or folder path (true/false)
startActivityForResult(intent, CHOOSER_REQUEST_CODE);
6. Add code to get result from chooser activity:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (resultCode == RESULT_OK && requestCode == CHOOSER_REQUEST_CODE) {
String path = data.getStringExtra("path"); // returned path
}
}| Type | Android App |
|---|---|
| Author | OlDenWeb |
| Category | Mobile / Android / Ui Elements |
| Price | $12 |
| Sales | 3 |
| Published | Aug 23, 2016 |
| Last Update | Sep 9, 2019 |
| Compatible Software | Android 9.0, Android 8.1, Android 8.0, Android 7.2.x, Android 7.1.x, Android 6.0, Android 5.1.x, Android 5.0, Android 4.4.x, Android 4.3.x, Android 4.2.x, Android 4.1.x |
| Mobile Files Included | .apk, .java, .xml |
Categories
Tags
External listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 4,277 views · 38 clicksSaaS · Week 45 · 4,277 views · 38 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 41,986 views · 223 clicksWebsite · Week 45 · 41,986 views · 223 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 40,029 views · 117 clicksSaaS · Week 45 · 40,029 views · 117 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 59,039 views · 198 clicksSaaS · Week 45 · 59,039 views · 198 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 28,411 views · 122 clicksDesktop App · Week 45 · 28,411 views · 122 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 4,248 views · 19 clicksWebsite · Week 45 · 4,248 views · 19 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
2,928 views · 17 clicksWeek 45 · 2,928 views · 17 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
2,704 views · 13 clicksWeek 45 · 2,704 views · 13 clicks