Hi,
I have tabhost with child activity, I do not have child activity, for this, I start the activity using the "startActivityForResult" method, but this result does not return the previous child's activity to new activity.
i initialization is as follows,
startActivityForResult ((new meaning (tabchild.This, NewInstanceActivity.class)), requestCode; Active Wide Onactive Result (Intrate Codecode, , Intent data) {if (resultCode == 1) {system.out.println ("activity started");} and {system.out.println ("activity did not start");}} incent = new intent (); SetResult (1, in); but it does not work. Any technique to solve it
Thank you
PutExtra to get you back the value (), Which you are looking for, then you can refer to it with a name like "Returned data"
intent = getIntent (); String msg = Intestine .getStringExtra ("sampleData"); Msg + = ", this is my message"; Intent.putExtra ("returned", msg); SetResult (RESULT_OK, intent); End();
Comments
Post a Comment