I want to be able to swipe between many HTML pages without noticeable lag. To do this, I want to load all of the pages into separate WebViews either in the background after the app is loaded, or in onCreate(). I'm using the code here: Looking for Android ViewFlipper Example with Multiple WebViews but ran into errors trying to create WebViews in doInBackground(), something to do with needing to create WebViews in the main thread. So instead, I just created the WebViews in onCreate().
However, this example uses just three HTML pages. I want to load up to 300. What's the best way to do this other than hard-coding 300 WebView objects?