首页 > 代码库 > 在adapter中startactivityforresult

在adapter中startactivityforresult

((CostomVisitActivity_New) context).startActivityForResult(intent, REQUSET_WORKER_LIST);

然后在CostomVisitActivity_New中实现onActivityResult()
public static final int REQUSET_WORKER_LIST = 105;

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == REQUSET_WORKER_LIST && RESULT_OK == resultCode) {
Log.v("=====================", "业务员点击条目跳转地图界面回调成功!!");
updateChecked();
}
}

在adapter中startactivityforresult