public override void onIncomingCall(CallClient callClient, Call call) { Log.d(TAG, "onIncomingCall: " + call.CallId); Intent intent = new Intent(outerInstance, typeof(IncomingCallScreenActivity)); intent.putExtra(CALL_ID, call.CallId); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); outerInstance.startActivity(intent); }
private void callButtonClicked() { string userName = mCallName.Text.ToString(); if (userName.Length == 0) { Toast.makeText(this, "Please enter a user to call", Toast.LENGTH_LONG).show(); return; } Call call = SinchServiceInterface.callUserVideo(userName); string callId = call.CallId; Intent callScreen = new Intent(this, typeof(CallScreenActivity)); callScreen.putExtra(SinchService.CALL_ID, callId); startActivity(callScreen); }
private void callButtonClicked() { string userName = mCallName.Text.ToString(); if (userName.Length == 0) { Toast.makeText(this, "Please enter a user to call", Toast.LENGTH_LONG).show(); return; } try { Call call = SinchServiceInterface.callUser(userName); string callId = call.CallId; Intent callScreen = new Intent(this, typeof(CallScreenActivity)); callScreen.putExtra(SinchService.CALL_ID, callId); startActivity(callScreen); } catch (MissingPermissionException e) { ActivityCompat.requestPermissions(this, new string[] { e.RequiredPermission }, 0); } }