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:
- Create your own activity, for example, MyMeetingActivity
- In
config.xml
, add the following:
<string name="zm_config_conf_activity">us.zoom.sdksample.MyMeetingActivity</string>
- Declare the Activity in your AndroidManifest.xml
- In your
MyMeetingActivity
class,extends MeetingActivity
public class MyMeetingActivity extends MeetingActivity {
...
}
- Override the onBackPressed method:
@Override
public void onBackPressed() {
onClickLeave();
...
}
- 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!