I tried to make an Android program where I can call a single number by clicking button. Works fine but as I end calling, the emulator shows call log. Instead of this I would that my program returns to the screen where is that calling button I made. How can I do this? My code is now like this
((Button) findViewById(R.id.soita)).setOnClickListener(
new Button.OnClickListener() {
@Override public void onClick(View arg0) {
String nro="9999999";
Intent intent1 = new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+nro));
startActivity(intent1);
Intent intent2 = new Intent(Intent.CATEGORY_HOME);
startActivity(intent2);