2
I would like to know how to make that when clicking on a button, a Telephonic call to the number.
As I did, he calls Activity Action_diall with the number already written, so the person must click again to make the call.
It is possible that by clicking this button (from the app) already carry out 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);
}