Back to project page app-app-calling-android.
The source code is released under:
MIT License
If you think the Android project app-app-calling-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.sinch.apptoappcall; // ww w .j a v a 2 s. c o m import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.View; import android.widget.TextView; public class LoginActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.login); findViewById(R.id.loginButton).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(getApplicationContext(), CallActivity.class); intent.putExtra("callerId", ((TextView) findViewById(R.id.callerId)).getText().toString()); intent.putExtra("recipientId", ((TextView) findViewById(R.id.recipientId)).getText().toString()); startActivity(intent); } }); } }