Paste #nDZ4V5gWR

QAndroidIntent intent(QtAndroid::androidActivity().object(), "com.facebook.accountkit.ui.AccountKitActivity");

        QAndroidJniObject loginType
                = QAndroidJniObject::getStaticObjectField<jobject>("com/facebook/accountkit/ui/LoginType", "PHONE", "Lcom/facebook/accountkit/ui/LoginType;");
        QAndroidJniObject responseType
                = QAndroidJniObject::getStaticObjectField<jobject>("com/facebook/accountkit/ui/AccountKitActivity$ResponseType", "CODE", "Lcom/facebook/accountkit/ui/AccountKitActivity$ResponseType;");

        QAndroidJniObject configurationBuilder("com/facebook/accountkit/ui/AccountKitConfiguration$AccountKitConfigurationBuilder",
                                               "(Lcom/facebook/accountkit/ui/LoginType;Lcom/facebook/accountkit/ui/AccountKitActivity$ResponseType;)V",
                                               loginType.object(), responseType.object());

        QString configKey = QAndroidJniObject::getStaticObjectField<jstring>("com/facebook/accountkit/ui/AccountKitActivity",
                                                                              "ACCOUNT_KIT_ACTIVITY_CONFIGURATION").toString();

        QAndroidJniObject config = configurationBuilder.callObjectMethod("build", "()Lcom/facebook/accountkit/ui/AccountKitConfiguration;").object();


        intent.handle().callMethod<void>("putExtra",
                                         "(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;",
                                         QAndroidJniObject::fromString(configKey).object(),
                                         config.object());
        
        QtAndroid::startActivity(intent.handle(), 99, new AccountKitReceiver);