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: JFrog Distribution: Get your software to where it needs to be -- ASAP! and GitHub - pdvrieze/android-coroutines: Additional coroutine support for Android