android - Android 中电话 Intent 的 Uri 是什么?

标签 android android-intent uri

我在 android 文档中发现 Uri 是一个

Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC 2396.

当我想从我的 android 应用程序进行调用时, Intent 如下所示:

String toDial="tel:"+number.getText().toString();
Intent i = new Intent(Intent.ACTION_DIAL,Uri.parse(toDial));

在这种情况下,物理或抽象资源是什么?

最佳答案

电话号码的 URI 记录在 RFC 3966 中

https://www.rfc-editor.org/rfc/rfc3966

The URI can refer to resources identified by a telephone number, including but not limited to originators or targets of a telephone call.

关于android - Android 中电话 Intent 的 Uri 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10560845/

相关文章:

java - 关于 Activity 回调中的@override 注解

ansible - Ansible uri 模块中的多个 status_code

java - 如何处理java URI密码中的 "@"?

c# - 使用 System.Uri 附加多个段

java - 一个奇怪的 RecyclerView 故障

java - TCP 连接期间应用程序崩溃

android - 通过 Intent 传递整个类引用

android - 如何读取保存到设备内部存储的PDF文件?

java - Facebook LikeView 更改按钮大小

Android Studio 2.2 preview1 错误