One of my big bugbears with Android is the the asynchronous behaviour of things like
startActivityForResult or even dialogs. The permission request code is a similar issue. Based on this I’ve created a library to try to address this with coroutines. It is persistence safe (with restrictions - capturing android objects is difficult (there is support for activities and non-nested fragments)) using Kryo.
I’d like people to have a look at it, give some feedback and suggestions. The API needs some tweaking/renaming.
The library can be found at: https://bintray.com/pdvrieze/maven/android-coroutines and https://github.com/pdvrieze/android-coroutines