February 22, 2022

StartActivityForResult | OnActivityResult Deprecated in Xamarin Android

Along with androidX support StartActivityForResult and OnActivityResult got dprecated inside Fragment. Here we can see the one of the alternate approach for this deprecated api's in xamarin android.

Below code snippet explains the handling the above mentioned deprecated API's:

In my previous post explained  Android Keystore based encryption and decryptionHow to implement Dependency injection in xamarin form using AutoFacReOrder the list items by drag and drop in xamarin androidCustom Image Gallery Control using Xamarin Form


Happy coding!!


  1. Hello,

    ActivityResultCallback class not found.
    However IActivityResultCallback interface exists
    Do I need to add any references?

  2. OK. The class is there at the end of the code.