We're building an app where users can play casual games, with or without internet. Users can favorite the games they like and we'll keep their cached files on the device; and, to keep the size of the app optimum, we keep clearing all other cached files.
Now, we want to cache resources in the background thread and not in the UI thread. We are being able to initialize the XWalkView asynchronously, but we aren't being able to create an instance in the background thread. Here's the use-case: we show a list of games to users and against each game, there is the option of favoriting the game. What that is supposed to do is make the game available for offline access. But, to actually do that, we need the game to be played at least once so that the resources can be cached in the first place. What if the user wants to favorite a game, but has never played it on that device before? What we are doing now is we're creating an instance of XWalkView and running the game on it (keeping the activity hidden all this while) so that all the resources can be fetched and cached. This causes a bad lag and we want to be able to do this in the doInBackground() method. Any leads would be appreciated :) -- Yashash Agarwal Co-founder Gamezop Remember meeting shy IIT juniors at 2 States book launch, saying sir we run a small e-bookstore. I said what's the name. They said Flipkart. ~ Chetan Bhagat
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
