After completely rewriting BitDroid, I was sure to take advantage of all the new features that Android 4+ devices have to offer. One of those features I hadn’t used before was AsyncTask which helps to load data in the background without tying up the UI thread. Android 4+ devices force this behavior, in order to increase the speediness of applications, and prevent the user from wondering if the app is doing anything or not.
With this release I modified the original code to fetch user history to first pull the list and second pull the click counts for each item, and then add them to the list as they are loaded. This has significantly increased load speed as the user gets to see the most pertinent information first, the links, and then the link counts, shortly thereafter. As seen below the links are present, and the refresh animation (in the upper right) is still spinning, once they load the hyphens will turn to numbers. I also took inspiration from Pocket, which checks the clipboard when you first load the app and asks if you want to save it to read later. I’ve added a fairly unobtrusive prompt that should get attention or be ignored depending on what the user wants to do. BitDroid version 2.2 has been pushed to the play store, look for an update in the next few hours.