隐性和显性意图之间的区别 [英] Difference between implicit and explicit intents

查看:281
本文介绍了隐性和显性意图之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑的隐性和显性意图之间的差异。什么是隐性和显性意图的目的,以及为什么使用这些概念?我是新来的Andr​​oid应用程序,所以请提供一些例子。

I'm confused about the difference between implicit and explicit intents. What is the purpose of implicit and explicit intents, and why are these concepts used? I am new to Android applications, so please provide some examples.

推荐答案

1)明确意图:明确意图名组件

1) Explicit Intent: Explicit intent names the component.

2)隐式意图:隐含意图没有指定组件

2) Implicit Intent: Implicit Intents have not specified a component.

例如:应被称为隐式意图的Java类提出系统执行服务
    瞒着哪个Java类应该做这个服务系统。

eg: The java class which should be called Implict intent asked the system to perform a service without telling the system which java class should do this service.

这篇关于隐性和显性意图之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆