I launch the activation with the choice of the file with the following code:
Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("*/*"); intent.addCategory(Intent.CATEGORY_OPENABLE); ctx.startActivity(intent);
Is there any possibility to get the result of executing this activity without using a bunch of startActivityForResult
and onActivityResult
? Because it is assumed that the code can be called from different activites. So, overloading the onActivityResult
method with any particular activation will fail.