I get ActivityNotFoundException
when perform Intent.ACTION_CALL operation. I found many links but all of it couldn't solve my problem.
It sometimes gives me exception like
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx pkg=com.android.phone (has extras) }
I have used the following code in my project
String contact_number="123456789";
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:" + contact_number));
startActivity(callIntent);
ACTION_DIAL
the right one? i don't think you can start a call without any user input. – Posturize