I am trying to start a video call and I receive this error every time
E/AndroidRuntime(668): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.phone.videocall dat=tel:xxx-xxx-xxxx (has extras) }
E/AndroidRuntime(668): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
E/AndroidRuntime(668): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
E/AndroidRuntime(668): at android.app.Activity.startActivityForResult(Activity.java:2827)
E/AndroidRuntime(668): at android.app.Activity.startActivity(Activity.java:2933)
Here is my code:
Intent callIntent = new Intent("com.android.phone.videocall");
callIntent.putExtra("videocall", true);
callIntent.setData(Uri.parse("tel:" + prefs.getString("videonumber", "")));
startActivity(callIntent);
In my manifest I have the <uses-permission android:name="android.permission.CALL_PHONE"/> permission. I thought thats all you need but maybe I am wrong. My videonumber is in this format 1-xxx-xxx-xxxx. Any help would be greatly appreciated.
That means you do not have any applications installed on your phone, which could handle a video call.
That why is always good when calling external activities, to wrap all the code in a
try()catch{}block, as you can’t rely on the fact the user will have a such kink of app installed.