Skip to content
/ Album Public

a powerful album include runtime permission and fileprovider

Notifications You must be signed in to change notification settings

Jack198x/Album

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Album

a powerful album include runtime permission and fileprovider

Usage

    Album.with(activity, your authority)
                .title(your title)
                .enableCrop(true)
                .enableCamera(true)
                .maxChoice(1)
                .setListener(new AlbumListener() {
                    @Override
                    public void onPhotosSelected(ArrayList<String> photos) {

                    }

                    @Override
                    public void onError(String error) {

                    }
                })
                .open();

in your manifest

        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="@string/your authority"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/album_file" />
        </provider>

Setup

compile 'cn.jack:album:1.0.6'

About

a powerful album include runtime permission and fileprovider

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages