code: public void init(Application app, Activity initActivity) {
          HMSAgentLog.d("init");
  
          if (application != null) {
              application.unregisterActivityLifecycleCallbacks(this);
          }
  
          application = app;
          setCurActivity(initActivity);
          app.registerActivityLifecycleCallbacks(this);
      }
docs: 初始化方法 | Initialization method
  @param app 应用程序 | application