Intent intent = new Intent(Intents.ACTION_MANUAL_REFUND); startActivityForResult(intent, REQUEST_CODE_MANUALREFUND);In the OnActivityResult method we are getting null when trying to pull out the EXTRA_CREDIT data from the intent. I've tried various methods to pull out this extra but they all come back null.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if(requestCode == REQUEST_CODE_MANUALREFUND) { try{ GenericParcelable parcelableCredit = data.getParcelableExtra(Intents.EXTRA_CREDIT); String stringCredit = data.getStringExtra(Intents.EXTRA_CREDIT); Bundle bundleCredit = data.getBundleExtra(Intents.EXTRA_CREDIT); Serializable serializableCredit = data.getSerializableExtra(Intents.EXTRA_CREDIT); Credit credit = data.getParcelableExtra(Intents.EXTRA_CREDIT); //credit is null Log.d(TAG, "onActivityResult: " + credit); } catch (Exception e){ e.printStackTrace(); } } }
Please let me know what I can do to get the EXTRA_CREDIT data in this scenario.
Thanks.