protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.incoming; Button answer = (Button) findViewById(R.id.answerButton); answer.OnClickListener = mClickListener; Button decline = (Button) findViewById(R.id.declineButton); decline.OnClickListener = mClickListener; mAudioPlayer = new AudioPlayer(this); mAudioPlayer.playRingtone(); mCallId = Intent.getStringExtra(SinchService.CALL_ID); }
protected internal override void onCreate(Bundle savedInstanceState) { base.onCreate(savedInstanceState); ContentView = R.layout.callscreen; mAudioPlayer = new AudioPlayer(this); mCallDuration = (TextView) findViewById(R.id.callDuration); mCallerName = (TextView) findViewById(R.id.remoteUser); mCallState = (TextView) findViewById(R.id.callState); Button endCallButton = (Button) findViewById(R.id.hangupButton); endCallButton.OnClickListener = new OnClickListenerAnonymousInnerClassHelper(this); mCallId = Intent.getStringExtra(SinchService.CALL_ID); if (savedInstanceState == null) { mCallStart = DateTimeHelperClass.CurrentUnixTimeMillis(); } }