发现书上的单词错误了~原来是VOICE_CALL写成VOIDE_CALL了~~害我调试半天,最后在api中才发现..
直接上代码
1 "creator": { 2 "phoneNumber": "+86 10010" 3 } 4 "menuItems": [ 5 { 6 "action": "VOICE_CALL" 7 } 8 ]
拨打的号码要在creator.phoneNumber中定义,而并不是menuItems.payload
Mirror app - 调用CALL打电话功能,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/ch3rry/p/3848863.html