Modify the adapter example to perform write operations in a worker thread

Unless the app has good reasons for doing otherwise, stuff like this should be moved to onResume and thread should be stopped onPause as well to preserve system resources.