In my main activity I have:
Intent settings_intent = new Intent(this, SettingsActivity.class); settings_intent.putExtra("SomeID", some_int); startActivityForResult(settings_intent, 1);
And then, in my SettingsActivity application, I:
@Override public void onBackPressed() { super.onBackPressed();
And finally, I tried the following in my main activity:
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { makeToast("called"); super.onActivityResult(requestCode, resultCode, data); }
However, the “called up” toast happens as soon as my “Settings” begins, and not when it ends. I have spent quite a lot of time on this now. Any help is appreciated. Thanks.
source share