Onbackpress to go out of application

Hi aadil9265711,

Thanks for the reply. I understand your request and the link includes the discussion of how to do what you are mentioning. I have just tested with our demo app(sample), using default UI, and I am able to override the back button action. Here are the steps:

  1. Create your own activity, for example, MyMeetingActivity
  2. In config.xml, add the following:
<string name="zm_config_conf_activity">us.zoom.sdksample.MyMeetingActivity</string>
  1. Declare the Activity in your AndroidManifest.xml
  2. In your MyMeetingActivity class, extends MeetingActivity
public class MyMeetingActivity extends MeetingActivity {
...
}
  1. Override the onBackPressed method:
@Override
    public void onBackPressed() {
 onClickLeave();
...
}
  1. If you would like define other actions other than calling the leave meeting dialog, you can do whatever you prefer in this callback.

Hope this helps. Thanks!