I have an activity that prevents me from resetting code 0, and I do not know why.
In this way, I'm starting to intend:
Private Zero StartStartTank Activity () {Intent intention = new intent (getActivity (), cylinder-tab activation class); Intent.putExtra ("Job ID", B.Getstrings ("JobID"); StartActivityForResult (intent, 0); } Private Zero startPropertyRiskAssessmentActivity () {intent = intent (getActivity (), PropertyRiskAssssmentActivity.class); Intent.putExtra ("Job ID", B.Getstrings ("JobID"); StartActivityForResult (intent, 0); }
Indicates that 2 activities are starting.
The way I end the activity is as follows:
setResult (CaptureVisit.RESULT_CODE_CYLINDER_TANK_CHECK); End(); SetResult (CaptureVisit.RESULT_CODE_PROPERTY_RISK_REPORT); This.finish ();
In exactly the same way. But, on security tax, but as a result the code gets in 0, although it is not at risk of property ... but they both start and end.
I tried:
if (getParent () == faucet) {this.setResult (CaptureVisit.RESULT_CODE_CYLINDER_TANK_CHECK); This.finish (); } Other {getParent () SetResult (CaptureVisit.RESULT_CODE_CYLINDER_TANK_CHECK); GetParent () Finish () .; }
Which does not really do much, is there anything that can set the resultcode to change in addition to affecting the result?
EDIT: I conclude activities in an onclick event. If this is relevant then I can post the entire code.
EDIT2: Collision I could not find the answer to this question ...
Comments
Post a Comment