说明::
我正在从事本机应用程序。如果我的API数据大小超过500 kb,并且可以扩展为mb值。我的Android / IOS应用第二次加载页面时崩溃。
我无法向该API添加分页,因为我希望加载页面上的所有数据。我只有5条记录,但每条记录都有大量数据。分页无法为我解决此问题。每条记录包含一个记录的1年时间表。
错误日志::
2019-03-22 10:00:31.048 557-557/? E/lowmemorykiller: Error writing /proc/15420/oom_score_adj; errno=22
2019-03-22 10:00:31.137 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:31.140 557-557/? E/lowmemorykiller: Error opening /proc/13901/oom_score_adj; errno=2
2019-03-22 10:00:32.076 1656-1796/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=199, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED] ]
2019-03-22 10:00:32.125 467-2617/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2019-03-22 10:00:32.280 2033-2033/? E/QcDataStatusNotification Service: mobile_data3
2019-03-22 10:00:32.337 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.357 2033-2033/? E/QcDataStatusNotification Service: mobile_data9
2019-03-22 10:00:32.406 14683-14683/? E/ReflectUtils: Exception e: miui.reflect.NoSuchMethodException: Couldn't find method android/app/ActivityManagerProxy.setProcessForeground(IZ)Landroid/os/IBinder;
2019-03-22 10:00:32.460 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.461 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.494 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.495 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.513 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.527 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.528 14683-14683/? E/MarketManager: String array resource ID #0x0
2019-03-22 10:00:32.599 16143-16184/? E/WakePathManager: UpdateWakePathTask.doInBackground: isWifiNetwork==false
2019-03-22 10:00:32.600 14683-16187/? E/ActivityThread: Failed to find provider info for com.xiaomi.mihomemanager.whitelistProvider
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.910 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.qcom.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH3 /odm/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:32.911 14683-14683/? E/HAL: PATH1 /system/lib64/hw/gralloc.msm8953.so
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/quietImage.png
2019-03-22 10:00:33.168 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: quietImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: den480/startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceLoader: fail to get getPathForLanguage: startImage.png
2019-03-22 10:00:33.169 14683-16228/? E/ResourceManager: fail to load image: startImage.png
如果API数据太小,有时可以正常工作。 API数据太大时,这是一个问题。请提出建议,如果有人有解决方案?