Making a Call through android device via phone and the code does not seems to work
I am call this function
private void call() {
try {
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("912345678"));
startActivity(callIntent);
} catch (ActivityNotFoundException activityException) {
Log.e("dialing-example", "Call failed", activityException);
}
}
also I have given the permission
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
What am I doing wrong any one can guide me?