code: @Override
      public void onActivityPause(Activity activity) {
          // 通知hmssdk，activity onPause了
          HuaweiApiClient client = getApiClient();
          if (client != null) {
              client.onPause(activity);
          }
      }
docs: Activity onPause回调
  
  @param activity 发生 onPause 事件的activity