Intent intent = new Intent(Intents.ACTION_CUSTOMER_ADD_TIP); intent.putExtra(Intents.EXTRA_AMOUNT, OrderAmount); intent.putExtra(Intents.EXTRA_ORDER_ID, OrderId); startActivityForResult(intent, REQUEST_CODE_TIP); @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Log.d("TIP", "on result"); if (requestCode == REQUEST_CODE_TIP) { if (resultCode == Activity.RESULT_OK) { Log.d("TIP", ""+data.getLongExtra(Intents.EXTRA_TIP_AMOUNT,0l)); } else if (resultCode == Activity.RESULT_CANCELED) { Log.d("on result TIP", "cancelled"); } } }