These two weeks I mainly adding boxes to dashboard. Through realize a custom Loader(DashboardBoxDataLoader) and then return the data every box needed directly. Adding DashboardBoxFragment to dashboard. Also modify the layout of dashboard in vertical and horizon direction. The vertical and horizon display as followed:
While fix PossibleCursorLeak exception in the state of onPause in fragment or activity, if not shut down cursor, and refresh the local database now, it may cause PossibleCursorLeak. So I invoke restartLoader in onResume, and invoke destroyLoader in onPause to fix this BUG.