I would like to know how to make a telephone call to the number when clicking on a button.
As I did, it calls the Action_Diall activity with the number already written, so the person must click again to make the call.
Is it possible that clicking this button (of the app) already makes the call?
Follow the code below:
else if (id == R.id.btn_call){
String celular = saveSharedPreferences.getNumber(getContext());
intent = new Intent(Intent.ACTION_DIAL);
intent.setData(Uri.parse("tel:"+celular));
startActivity(intent);
}