android - android中关于Intent.ACTION_VIEW的查询

标签 android

Intent.ACTION_VIEW中的Intent是什么?它是一个类还是方法,这里什么是 ACTION_VIEW ?它是一个变量吗?它的类型是什么?请详细解释。谢谢。

最佳答案

Android中的

Intent是一个抽象公共(public)类ACTION_VIEW 是对 Intent 的操作。

public static final String ACTION_VIEW

Since: API Level 1 Activity Action: Display the data to the user. This is the most common action performed on data -- it is the generic action you can use on a piece of data to get the most reasonable thing to occur. For example, when used on a contacts entry it will view the entry; when used on a mailto: URI it will bring up a compose window filled with the information supplied by the URI; when used with a tel: URI it will invoke the dialer.

Input: getData() is URI from which to retrieve data.

Output: nothing.

Constant Value: "android.intent.action.VIEW"

您需要阅读 Android 开发人员指南。您将得到更好的理解here .

关于android - android中关于Intent.ACTION_VIEW的查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11370921/

相关文章:

java - Robolectric 3.0 - java.lang.NoClassDefFoundError : android/support/v7/appcompat/R$styleable when testing library module

android - 如何将 Android SpeechRecognizer 作为服务使用?

java - 为 Vitamio 播放器创建自定义播放按钮

android - 适用于平板电脑的 Google+ Android 网格小部件教程

android - 切换选项卡时调用 onCreateOptionsMenu() 两次,未调用 OnOptionItemSelected()

javascript - 如何使用phonegap检查联系人数据库中是否存在电话号码?

java - 无法从 jsonObject 获取字符串

android - 共享元素转换中的 TextView 引力

java - 我安装了 Android Studio,但无法通过命令行访问 gradle

android - 使用 Android 在 XML 中绘制多边形