Why is LocationSettingsResult startResolutionForResult not calling onActivityResult?

后端 未结 5 1216
悲&欢浪女
悲&欢浪女 2021-02-15 04:33

I\'ve seen this Q&A LocationSettingsRequest dialog - onActivityResult() skipped. It isn\'t the same issue because everything is being done in an Activity already.

Th

5条回答
  •  无人及你
    2021-02-15 05:11

    You can check out the Google Play Location Sample since your code is quite similar it.

    From what I can tell on your samples, onResult() may not be called because the case is not LocationSettingsStatusCodes.RESOLUTION_REQUIRED. Its not calling the startResolutionForResult or an underlying setActivityForResult inside it.

提交回复
热议问题