I have this function:
public void onClick(View v) { String phoneNumber = ((EditText)findViewById(R.id.phoneNumber)).getText().toString(); Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:"+phoneNumber)); startActivity(intent); }
I need that after the call is completed (the call window is closed and returned to my application), some of my functions are callEnded()
, for example callEnded()
. How to do this? PS Maybe it's better to make calls somehow differently? Because you need to make a lot of calls and automatically ...