It is necessary to call the dialer from the application with a pre-specified number. I use the code:
String number = "tel:+7123456789"; Intent callIntent = new Intent(Intent.ACTION_DIAL, Uri.parse(number)); startActivity(callIntent); The last line is highlighted in red. How to fix? And what markup is needed in the layout to display a button with a call?