public String getVitalSignsJson(){
String json = "";
json = JsonHelper.tojson(this.gatherFragment.getGatheredVitalSigns());
return json;
}
// 如果不是从第三方返回的话,就正常触发onBackPressed()
@Override
public void onBackPressed() {
if (Constants.VIS_ACTION_LOGIN.equalsIgnoreCase(mAction)) {
Intent intent = new Intent();
Bundle extras = new Bundle();
if (gatherFragment != null) {
extras.putString("data", getVitalSignsJson());
}
intent.putExtras(extras);
setResult(Activity.RESULT_OK, intent);
finish();
} else {
super.onBackPressed();
}
}