public void SetCallbackSuccess() { if (mLocationCallback == null) { mLocationCallback = new LocationCallBackWrap(); } mFusedLocationProviderClient .requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.getMainLooper()) .addOnSuccessListener(new LocationSuccessListener((AndroidJavaObject o) => { TestTip.Inst.ShowText("SetCallbackSuccess success"); })) .addOnFailureListener(new HmsFailureListener((Exception e) => { TestTip.Inst.ShowText("SetCallbackSuccess fail"); })); }