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/