I'm trying to get an android app running on Google Glass to make a call. This is the code to call the intent:
String uri = "tel:+44....." ;
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse(uri));
startActivity(intent);
And this throws the following exception.
09-26 21:57:05.880: E/AndroidRuntime(4995): FATAL EXCEPTION: main
09-26 21:57:05.880: E/AndroidRuntime(4995): android.content.ActivityNotFoundException:
No Activity found to handle Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxxxxx }
09-26 21:57:05.880: E/AndroidRuntime(4995): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxxxxx }
My Glass is bluetooth tethered to my phone, and I can get it to make calls with the "OK Glass, make call to...." command. Am I missing something, or is this Intent not currently supported on Glass ?