v1.0 File Chooser

Subscribe to updates

Get notified by email if this item is updated

File Chooser

8 0 1
5 out of 5 based on 0 customer ratings
(0)

12$ Free Trial Version Coming Soon

File Chooser – It’s a Java source code that can be easy integrated into your Android project. The source is for Eclipse but it can be also imported into Android Studio.

Compare

Buy item Elements

Version: v1.0
Created: 23 August 2016
Last Update: 24 August 2016
Author: OlDenWeb
Categories: , ,

File Chooser

It’s a Java source code that can be easy integrated into your Android project. The source is for Eclipse but it can be also imported into Android Studio.

File Chooser

How to Integrate

1. Copy all files from res/drawable folder and all next files into your project:

src/com/oldenweb/filechooser/FileChooser.java
res/values/file_chooser_strings.xml
res/layout/file_chooser.xml
res/layout/file_chooser_item.xml

2. 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" android:configChanges="orientation|..." />

4. 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);

5. 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
   }
}
Software Version

Android 4.0, Android 4.0.3, Android 4.0.4, Android 4.1.x, Android 4.2.x, Android 4.3.x, Android 4.4.x, Android 5.0, Android 5.1.x, Android 6.0

Files Included

.xml, .java, .apk

Reviews

There are no reviews yet.

Be the first to review “File Chooser”

Your email address will not be published. Required fields are marked *

 

Coming Soon

Dear users, an information about trial version is unavaible. We are working on solving this problem and soon information will be provided.

Please visiut us after a few days.