yanzhenjie / Album

:watermelon: Album and Gallery for Android platform.
https://github.com/yanzhenjie/Album
Apache License 2.0
2.51k stars 506 forks source link

Loading speed slowdown #333

Open charlizesmith opened 2 years ago

charlizesmith commented 2 years ago

Hi,

I have implemented the library exactly following the steps that are shown in Readme file. But the loading speed is very slow as compared to the sample project. Is there any other change which needs to be made in order to achieve the faster loading of videos and images as well as albums etc?

Here is the piece of code I am using from ReadMe .Please let me know the solution.

Album.album(this) .multipleChoice() .columnCount(2) .selectCount(6) .camera(true) .cameraVideoQuality(1) .cameraVideoLimitDuration(Integer.MAX_VALUE) .cameraVideoLimitBytes(Integer.MAX_VALUE) .checkedList(mAlbumFiles)

            .onResult(new Action<ArrayList<AlbumFile>>() {
                @Override
                public void onAction(@NonNull ArrayList<AlbumFile> result) {
                    mAlbumFiles = result;
                    Log.d("album","selction count"+mAlbumFiles.size());
                }
            })
            .onCancel(new Action<String>() {
                @Override
                public void onAction(@NonNull String result) {

// Toast.makeText(AlbumActivity.this, R.string.canceled, Toast.LENGTH_LONG).show(); } }) .start();