ビデオ通話を開始しようとしていますが、毎回このエラーが表示されます
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)
これが私のコードです:
Intent callIntent = new Intent("com.android.phone.videocall");
callIntent.putExtra("videocall", true);
callIntent.setData(Uri.parse("tel:" + prefs.getString("videonumber", "")));
startActivity(callIntent);
私のマニフェストには、<uses-permission android:name="android.permission.CALL_PHONE"/>
許可があります。必要なのはそれだけだと思いましたが、間違っているかもしれません。私videonumber
の形式は 1-xxx-xxx-xxxx です。どんな助けでも大歓迎です。