I found 2 problems with the Intent function:
android.content.Intent, making it difficult to use if I'm in an activity that overrides functions like onActivityResult or onNewIntent. Since Activity already has a property intent, I propose to rename the function to intentFor or newIntent.reified T : java.lang.Class<_>. I guess it should only bereified T : Any.Also, Anko provides a utility function startActivity but not startActivityForResult.
Finally, startActivity is defined for Activity and android.app.Fragment but not for android.support.v4.app.Fragment
Fixed.
The last part of the question is not solved
Finally, startActivity is defined for Activity and android.app.Fragment but not for android.support.v4.app.Fragment
Contributions are welcome!
Most helpful comment
The last part of the question is not solved