我正在使用
Conductor
代替附着到活动的片段。
脚本:
LocationConductor
已附加到
MotherActivity
位置导体
,我正在访问
GoogleApiClient
LocationRequest
对话
LocationSettingsResult.getStatus().startResolutionForResult(getActivity(), RC_LOCATION_SETTINGS);
It请求
LocationRequestDialog
使用
谷歌客户端
这需要
Activity
上下文对话框中的回调将返回
onActivityResult
属于
母亲活动
活动
传递了上下文。
问题:
-
我希望回调到LocationConductor,而不是MotherActivity。在调用LocationRequest时,如何在导体中强制回调或传递导体上下文?
尝试:
-
registerForActivityResult(requestCode):但这也无助于在导体上强制回调。
registerForActivityResult : Registers this Controller to handle onActivityResult responses. Calling this method is NOT necessary when calling {@link #startActivityForResult(Intent, int)}