I have tried that, here are the few sample
This is my MainActivity
package com.example.zoom_poc_3;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.Toast;
import us.zoom.sdk.*;
public class MainActivity extends AppCompatActivity {
private Button btnJoin;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
initializeSdk(MainActivity.this);
btnJoin = findViewById(R.id.btn);
btnJoin.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
joinMeeting(MainActivity.this, "97448120538", "828130");
}
});
}
public void initializeSdk(Context context) {
ZoomSDK sdk = ZoomSDK.getInstance();
// TODO: For the purpose of this demo app, we are storing the JWT Token in the client app itself. However, you should not use hard-coded values for your JWT Token in your app in production.
ZoomSDKInitParams params = new ZoomSDKInitParams();
params.jwtToken = "" ; // I have given correct jwt as meeting was getting started
params.domain = "zoom.us";
params.enableLog = true;
// TODO: Add functionality to this listener (e.g. logs for debugging)
ZoomSDKInitializeListener listener = new ZoomSDKInitializeListener() {
/**
* @param errorCode {@link us.zoom.sdk.ZoomError#ZOOM_ERROR_SUCCESS} if the SDK has been initialized successfully.
*/
@Override
public void onZoomSDKInitializeResult(int errorCode, int internalErrorCode) {
}
@Override
public void onZoomAuthIdentityExpired() { }
};
sdk.initialize(context, listener, params);
}
private void joinMeeting(Context context, String meetingNumber, String password) {
MeetingService meetingService = ZoomSDK.getInstance().getMeetingService();
JoinMeetingOptions options = new JoinMeetingOptions();
JoinMeetingParams params = new JoinMeetingParams();
params.displayName = "Vicky";
params.meetingNo = meetingNumber;
params.password = password;
meetingService.joinMeetingWithParams(context, params, options);
}
}
this is my main_activity.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Button
android:id="@+id/btn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="Join"/>
</RelativeLayout>
This is my POCACtivity with is extending NewMeetingAcitvity
package com.example.zoom_poc_3;
import android.os.Bundle;
import android.view.WindowManager;
import us.zoom.sdk.NewMeetingActivity;
public class POCActivity extends NewMeetingActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE);
}
}
This is my manifest file
<activity
android:name=".POCActivity"
/>
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
This is my string.xml
<resources>
<string name="app_name">zoom_poc_3</string>
<string name="zm_config_conf_activity">.POCActivity</string>
</resources>
Even I have tried with
<string name="zm_config_conf_activity">com.example.zoom_poc_3.POCActivity</string>
I am using, 5.15.10 in android. Please lemme know if you have something for me.
Only challange in calling the POCActivity. it’s not getting called at all