Google glass GDK - 拨打电话

Glass拨打电话和Android是不一样的,今天搜索了一番,测试成功

1 Intent intent = new Intent();
2 intent.putExtra("com.google.glass.extra.PHONE_NUMBER", "+8618666666666");
3 intent.setAction("com.google.glass.action.CALL_DIAL");
4 sendBroadcast(intent);

需要注意的就是号码前面+86(For China)

posted @ 2014-07-27 11:27  一起2  阅读(105)  评论(0编辑  收藏  举报