During the closure of the activation is not performed onActivityResult ()
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Log.e("TAG","Работает"); } So I run the next activation.
Intent intent = new Intent(getApplicationContext(),Cart_level_1.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivityForResult(intent,1); We get the result
if(!this.getClass().toString().equals("class ilhom4ik_app.com.girbar.main$1")) { Intent results = new Intent(); results.putExtra("res","go"); setResult(RESULT_OK, null); finish(); } But for some reason, onActivityResult () does not start
getApplicationContext()pass inintentYourActivityName.this- Jarvis_J