All Projects → fishwjy → Multitype Filepicker

fishwjy / Multitype Filepicker

Licence: apache-2.0
This is a light Android file picker library.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Multitype Filepicker

File Picker
The Kloudless File Picker is a file chooser and uploader for apps that integrates with 20+ cloud storage services with a few lines of code
Stars: ✭ 208 (-84.38%)
Mutual labels:  file-explorer, picker
Appchooser
自定义打开指定文件的应用选择器。
Stars: ✭ 87 (-93.47%)
Mutual labels:  picker
Datetimepicker
This is a custom android holo datepicker timepicker
Stars: ✭ 56 (-95.8%)
Mutual labels:  picker
React Native Bubble Select
An easy-to-use customizable bubble animation picker, similar to the Apple Music genre selection
Stars: ✭ 78 (-94.14%)
Mutual labels:  picker
Mkcolorpicker
ColorPicker is a fantastic color picker 🎨 written in Swift. Developers can use our color picker as is or they can customize it with all the available features
Stars: ✭ 59 (-95.57%)
Mutual labels:  picker
Magnetic
SpriteKit Floating Bubble Picker (inspired by Apple Music) 🧲
Stars: ✭ 1,252 (-6.01%)
Mutual labels:  picker
Materialfilepicker
Picking files since 2015
Stars: ✭ 1,056 (-20.72%)
Mutual labels:  picker
Materialdaterangepicker
A material Date Range Picker based on wdullaers MaterialDateTimePicker
Stars: ✭ 1,315 (-1.28%)
Mutual labels:  picker
Treemacs
Stars: ✭ 1,270 (-4.65%)
Mutual labels:  file-explorer
Material Ui Color Picker
<ColorInput> component for material-ui
Stars: ✭ 74 (-94.44%)
Mutual labels:  picker
Circularpicker
CircularPicker is helpful for creating a controller aimed to manage any calculated parameter.
Stars: ✭ 73 (-94.52%)
Mutual labels:  picker
Godmode9
GodMode9 Explorer - A full access file browser for the Nintendo 3DS console
Stars: ✭ 1,132 (-15.02%)
Mutual labels:  file-explorer
Tcpickerview
Picker view popup with multiply rows selection written in Swift
Stars: ✭ 84 (-93.69%)
Mutual labels:  picker
React Native Modal Dropdown
A react-native dropdown/picker/selector component for both Android & iOS.
Stars: ✭ 1,103 (-17.19%)
Mutual labels:  picker
Angular Bootstrap Datetimepicker
Native Angular date/time picker component styled by Twitter Bootstrap
Stars: ✭ 1,289 (-3.23%)
Mutual labels:  picker
Android Dial Picker
A custom rotating dial like picker for android
Stars: ✭ 56 (-95.8%)
Mutual labels:  picker
Colorpickerwpf
Simple color picker control for WPF
Stars: ✭ 71 (-94.67%)
Mutual labels:  picker
React Native Picker Select
🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
Stars: ✭ 1,229 (-7.73%)
Mutual labels:  picker
Screenspace
Screenspace pickables for Maya
Stars: ✭ 93 (-93.02%)
Mutual labels:  picker
Bubble Picker
An easy-to-use animation which can be used for content picking for Android
Stars: ✭ 1,316 (-1.2%)
Mutual labels:  picker

MultiType-FilePicker

Download

This is a light Android file picker library.

Please star this library if you like it. :)

Demo

Demo Demo Demo Demo Demo Demo

Usage

1.Import to your project

compile 'com.vincent.filepicker:MultiTypeFilePicker:latestVersion' 

2.Start Activity For Result

case R.id.btn_pick_image:
	Intent intent1 = new Intent(this, ImagePickActivity.class);
	intent1.putExtra(IS_NEED_CAMERA, true);
	intent1.putExtra(Constant.MAX_NUMBER, 9);
	startActivityForResult(intent1, Constant.REQUEST_CODE_PICK_IMAGE);
	break;
case R.id.btn_pick_video:
	intent2 = new Intent(this, VideoPickActivity.class);
	intent2.putExtra(IS_NEED_CAMERA, true);
	intent2.putExtra(Constant.MAX_NUMBER, 9);
	startActivityForResult(intent2, Constant.REQUEST_CODE_PICK_VIDEO);
	break;
case R.id.btn_pick_audio:
	Intent intent3 = new Intent(this, AudioPickActivity.class);
	intent3.putExtra(IS_NEED_RECORDER, true);
	intent3.putExtra(Constant.MAX_NUMBER, 9);
	startActivityForResult(intent3, Constant.REQUEST_CODE_PICK_AUDIO);
	break;
case R.id.btn_pick_file:
	Intent intent4 = new Intent(this, NormalFilePickActivity.class);
	intent4.putExtra(Constant.MAX_NUMBER, 9);
	intent4.putExtra(NormalFilePickActivity.SUFFIX, new String[] {"xlsx", "xls", "doc", "docx", "ppt", "pptx", "pdf"});
	startActivityForResult(intent4, Constant.REQUEST_CODE_PICK_FILE);
	break;

3.Receive the Result from Activity

case Constant.REQUEST_CODE_PICK_IMAGE:
	if (resultCode == RESULT_OK) {
        ArrayList<ImageFile> list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_IMAGE);
    }
    break;
case Constant.REQUEST_CODE_PICK_VIDEO:
	if (resultCode == RESULT_OK) {
        ArrayList<VideoFile> list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_VIDEO);
    }
    break;
case Constant.REQUEST_CODE_PICK_AUDIO:
	if (resultCode == RESULT_OK) {
        ArrayList<AudioFile> list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_AUDIO);
    }
    break;
case Constant.REQUEST_CODE_PICK_FILE:
	if (resultCode == RESULT_OK) {
        ArrayList<NormalFile> list = data.getParcelableArrayListExtra(Constant.RESULT_PICK_FILE);
    }
    break;

Version Log

1.0.0 Initial Version

1.0.1 Fix issue #8 and enhance URL extract

1.0.2 Add resource prefix and update library version

1.0.3 Modify fetching video thumbnail rule

1.0.4 Fix "Attempted to access a cursor after it has been closed" in "onVideoResult"

1.0.5 Use Glide to load video thumbnail, delete record in Media DB when user cancel taking photo and add prefix to resources

1.0.6 Add folder feature

1.0.7 Upgrade to Glide 4

1.0.8 Fix provider crash on Android 7.0 above

Thanks

Inspired by Android-FilePicker

Image Viewer provide by PhotoView

Image Loader provide by Glide

License

Copyright 2016 Vincent Woo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].