您的位置:首页 > 移动开发

第三方APP从我的APP返回的时候,将得到本APP传过去的数据

2014-11-20 13:51 288 查看
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();
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐