on create request code intent code example Example: get requestcode from intent android getIntent().getAction();