AndroidPdfViewer icon indicating copy to clipboard operation
AndroidPdfViewer copied to clipboard

Large files throw ANR while loading ? why

Open naveedninesol opened this issue 3 years ago • 3 comments

File size larger then 10 mb take lots of time to load and some time throw ANR

naveedninesol avatar Jul 26 '22 11:07 naveedninesol

android {
    compileSdk 32
    defaultConfig {
        applicationId "com.vimalcvs.xyz"
        minSdk 21
        targetSdk 32
        versionCode 1
        versionName "1.0.0"
        vectorDrawables.useSupportLibrary = true

///------------------------------ try this

        ndk {
            abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'
            //abiFilters "armeabi", "armeabi-v7a", "x86", "mips", 'arm64-v8a', 'x86_64'
        }
///--------------------------------------


    }

vimalcvs avatar Aug 02 '22 13:08 vimalcvs

i have PDF file which is almost more than 5000 pages. when i try to load it gives ANR. well i will try this hope it will work

naveedninesol avatar Aug 03 '22 04:08 naveedninesol

i have PDF file which is almost more than 5000 pages. when i try to load it gives ANR. well i will try this hope it will work

Try this,change the dependencies to my library(Fix large File OOM) https://blog.csdn.net/wcsandlili/article/details/122420700

WinWang avatar Sep 24 '22 17:09 WinWang