Waiting for the result returned by an activity inside the method that called startActivityForResult

166 Views Asked by At

I have a method that calls startActivityForResult to start another activity that opens camera and returns url of the picture captured. The method that calls startActivityForResult returns url to some other function. But when the camera activity is opened the method opening it finishes and result is obtained in onActivityResult callback. I just want to get the result where Camera activity is started. Is there a way to achieve this. I mean by making the method wait until the value is obtained in the onActivityResult callback?

0

There are 0 best solutions below