can anyone tell how can we get the requestcode from an Intent which we passed from another activity??
If you do
intent.putExtra("requestCode", requestCode);
You can get it by doing:
int requestCode = getIntent().getExtras().getInt("requestCode");
Or
If you do startActivityForResult like this:
startActivityForResult(intent, requestCode);
The request code is there as parameter:
protected void onActivityResult(int requestCode, int resultCode, Intent data)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With