我正在处理一个 android wear
项目,在通过 intent
打开拨号活动时遇到问题。问题在于 Intent
正在打开通话记录而不是拨号盘。
代码片段
val callIntent = Intent(Intent.ACTION_DIAL)
callIntent.data = Uri.parse("tel:0526722293")
context.startActivity(callIntent)
我检查了不同的堆栈溢出帖子,但仍然面临同样的问题。
Can we make calls to any number in Android Wear 2.0?
How to make a phone call using intent in Android wear?
有没有什么,我必须为android Wear做更多的事情
答案 0 :(得分:0)
如果您在模拟器上测试应用程序,请在实体手表上尝试相同的操作。如果问题仍然存在,您可能需要检查以下内容:
参考: https://developer.android.com/guide/topics/connectivity/telecom/selfManaged#constraints https://developer.android.com/wear/releases?hl=ko