简体   繁体   中英

Android: is loading time of local HTML file into WebView affected by the storage place (internal storage/sdcard/external sd card)?

I made a test activity that loads a local HTML file from external sdcard but I see it can be slow for my purpose. Could I put that file into internal memory to gain in speed? Is loading time affected by the place the HTML file is loaded from?

I believe it's device dependent, based on what kind of memory is used on that specific device. You can use StrictMode to handle performance in a more general way.

That being said, I favor internal storage over external storage in general for speed purposes, especially for an HTML file that won't take up much space.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM