When you call startActivityForResult () , you also provide an "int requestCode". How can you get this parameter in the initiated action (to change some kind of initialization there)?
Or do I misunderstand the purpose of this parameter and it is used only to differentiate calls in onActivityResult (), and the initial activity should be initialized based on the Intents action and the additional package? I wonder where it is stored then, I suppose, it is still in the Activity, but private.
source
share