haga una llamada telefónica, haga clic en un botón
Estoy tratando de hacer una llamada cuando presiono un botón en Android
((Button)findViewById(R.id.button1)).setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String phno="10digits";
Intent i=new Intent(Intent.ACTION_DIAL,Uri.parse(phno));
startActivity(i);
}
});
Pero cuando corro y hago clic en el botón me da el error
ERROR/AndroidRuntime(1021): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat=9392438004 }
¿Como puedo resolver este problema