Usecase: Launch on button click

If there is a requirement to launch a project on click of a button in your app, call embedProject with the project ID when the button is clicked.
Android
Button yourButton = dialog.findViewById(R.id.your_button_id);
yourButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Leap.embedProject("PROJECT_ID");
}
});