[ad_1]
To get this product on 50 % low cost contact me on this link
It’s a Java supply code that may be simple built-in into your Android venture.
How to Integrate
1. Copy all information from app/src/most important/res/drawable/ folder and all subsequent information into your venture:
/app/src/most important/java/com/filechooser/app/FileChooser.java /app/src/most important/res/values/file_chooser_strings.xml /app/src/most important/res/format/file_chooser.xml /app/src/most important/res/format/file_chooser_item.xml /app/src/most important/res/xml/file_provider.xml
2. Add permission into AndroidManifest.xml:
<uses-permission android:title="android.permission.READ_EXTERNAL_STORAGE" />
3. Add chooser exercise into AndroidManifest.xml:
<exercise android:title=".FileChooser" .../>
4. Add supplier into AndroidManifest.xml:
<supplier android:title="androidx.core.content.FileProvider" android:authorities="${applicationId}.FileProvider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:title="android.support.FILE_PROVIDER_PATHS" android:useful resource="@xml/file_provider"/> </supplier>
5. Add code to open chooser exercise into browse button listener:
Intent intent = new Intent(this, FileChooser.class); intent.putExtra("path", "/storage"); // path to opened folder intent.putExtra("showFiles", true); // present or conceal information (true/false) intent.putExtra("returnFile", true); // return file or folder path (true/false) startActivityForResult(intent, CHOOSER_REQUEST_CODE);
6. Add code to get consequence from chooser exercise:
@Override protected void onActivityResult(int requestCode, int resultCode, Intent knowledge) { if (resultCode == RESULT_OK && requestCode == CHOOSER_REQUEST_CODE) { String path = knowledge.getStringAdditional("path"); // returned path } }
[ad_2]
To get this product on 50 % low cost contact me on this link