Intents and Intent Filters

2010-06-12  来源:本站原创  分类:Mobile  人气:162 

Android applications in the three major components - Activity, Service, Broadcast receiver - passed over by the news of Intent activated,

Intent messaging is a tool to apply the same or different applications running late binding together the components. Intent object itself is a passive data nodes

Structure, which is used to carry an abstract description, the abstract description of operations to be performed on the basic properties. - In the broadcast case, the description is already in place

And what is being annouced [sentence should continue to deeply understand what]. Here there are many independent mechanism for each type of component transfer Intent:

1. An Intent object passed to Context.startActivity () or Activity.startActivityForResult () to start an Activity, or use the saved

Activity in the implementation of an action.
2. An Intent object passed to Content.startService (), initialize a Service or as an ongoing Service delivered a new direction. Similarly, a

Were intent object passed to Context.bindService (), used to create active call between the components and objectives of the Service connection. If the Service has not yet run, then optional

Selective startup.
3.Intent object passed to any broadcast methods, such as Context.sendBroadcast (), Context.sendOrderBroadCast (), or

Context.sendStickyBroadCast (), this form of delivery, will be delivered to all interested Intent Broadcastreceiver. Many broadcast originated in

System code.

In these circumstances, Android system needs to find Activity, Service, or a broadcast receiver set, intent to respond to a message, and

And in case of need to initialize these components. These messages have nothing in common Intent: broadcast intent only sent to broadcast receiver, will be sent to

activity or service. A Intent passed startActivity (), will be sent to the activity, do not give a service or a broadcast receiver.

Intent of this document describes the object opening. Then introduced Android in intent and component mapping rules - Android how to address that component should receive a message Intent

. Intent is not obvious as to call which specified Component, the process involves the testing Intent potential target object and associated components of Intent filter.

相关文章
  • Android Development Journey: Intents and Intent Filters (theoretical part) 2010-07-30

    Introduction Most of the mobile device platform applications running in their own sand box. Mutual isolation between them, and strictly limit the application and the hardware and the interaction between the original components. We know how important

  • Intents and Intent Filters --- Preamble 2010-09-01

    Intents and Intent Filters Key classes 1. Intent 2. IntentFilter 3. Activity 4. Service 5. BroadcastReceiver 6. PackageManager This will include the following: 1. Intent Objects 2. Intent Resolution 3. Intent filters 4. Common cases 5. Using intent m

  • Intents and Intent Filters --- Intent Resolution 2010-09-03

    Intent Resolution Intents can be divided into two categories: 1, Explicit intents (explicit intents-specified target component name) designate the target component by its name (the component name field, mentioned earlier, has a value set). Since comp

  • Intents and Intent Filters - Intent filters 2010-09-03

    Intent filters To inform the system which implicit intents they can handle, activities, services, and broadcast receivers can have one or more intent filters. Each filter describes a capability of the component, a set of intents that the component is

  • Intents and Intent Filters --- Intent Objects 2010-09-02

    Intent Objects An Intent object is a bundle of information. It contains information of interest to the component that receives the intent (such as the action to be taken and the data to act on) plus information of interest to the Android system (such

  • Intents and Intent Filters 2010-06-12

    Android applications in the three major components - Activity, Service, Broadcast receiver - passed over by the news of Intent activated, Intent messaging is a tool to apply the same or different applications running late binding together the compone

  • Android Development Journey: Intents and Intent Filters 2010-09-13

    To learn intents and the intent-filter to it here: http://www.cnblogs.com/skynet/archive/2010/07/31/1789534.html

  • android intent and intent-filters 2011-05-20

    This is the original relentless snow, reprinted Please indicate the source: http://flysnow.iteye.com/blog/961576 Android Development Technology Exchange Group 86,686,524 (full) please add 120,059,404 Wrote Read the previous sections should be tutoria

  • Android开发指南-框架主题-意图和意图过滤器 2010-03-24

    意图和意图过滤器Intents and Intent Filters 一个应用程序的三个核心组件-活动,服务和广播接收器是通过消息即意图(Intents)来激活的.Intent消息传送是相同或不同应用中组件运行时晚绑定的一种机制.意图本身,一个意图对象,是一个包含被执行操作抽象描述的被动的数据结构-或者,对于广播而言,是某件已经发生并被声明的事情的描述.存在不同的机制来传送意图到每种组件中: 一个意图对象是传递给Context.startActivity()或者Activity.startAct

  • Android开发指南-框架主题-清单文件 2010-03-24

    清单文件The AndroidManifest.xml File 每个应用程序都有一个AndroidManifest.xml文件(一定是这个名字)在它的根目录里.这个清单文件给Android系统提供了关于这个应用程序的基本信息,系统在能运行任何程序代码之前必须知道这些信息.AndroidManifest.xml主要包含以下功能: 命名应用程序的Java包,这个包名用来唯一标识应用程序: 描述应用程序的组件-活动,服务,广播接收者,以及组成应用程序的内容提供器:对实现每个组件和公布其能力(比如,能

  • Android应用程序基础(Application Fundamentals)之一 2013-01-31

    正在尝试分析SDK中的示例程序NotePad,发现仍然还欠缺很多知识.今天看到 API Guides 下有一部分应用程序基础 Application Fundamentals,感觉需要进一步学习.于是准备采用之前的策略,边翻译,边学习.虽然这样做,学起来很慢,但是,好在可以慢慢理解,转化为自己的语言的同时也是一种加深记忆的过程.反正,我也只是业余学习,不赶时间,呵呵. 整个API指南有很多个章节,下面先把章节的名字列一下,这样知道还有多长的路要走. API Guides (developer.a

  • Android应用程序基础(Application Fundamentals)之二 2013-02-20

    前一篇: http://my.codeweblog.com/allenyao/blog/106669 Android应用程序基础(Application Fundamentals)之二:The Manifest File 清单文件(Manifest文件) 在Android系统启动一个应用程序组件之前,系统必须通过读取应用程序的AndroidManifest.xml文件来确定该组件是否存在.应用程序必须在这个文件中声明其所有的组件,而且这个文件必须在应用程序工程目录的根目录下. 除了声明应用程序的

  • android 进程和线程 2013-04-25

    Quicknav Design Develop Distribute Links Google Play Developer Console Android Developers Blog About Android Android Sites Android.com Android Developers Android Open Source Project Language English Español 日本語 한국어 Русский 中文 (中国) 中文 (台灣) Training AP

  • Chapter VII of the use of Intents with the Phone Dialer - on the 2010-03-29

    Chapter the use of Intents and Phone Dialer Key skills and concepts l the use of Intents l to create code that interacts with the cell phone hardware l understand the difference between dialing and calling So far, this chapter has been introduce you

  • [Change] Intent Analysis 2010-03-29

    Component-based architecture system, in addition to well-defined components, how to assemble these components together is also an art. In the Android in, Intent (seemingly often translated as: the intention of ...), is to connect the various componen

  • 什么时候要加上 android.intent.category.DEFAULT 2010-03-04

    在写 AndroidManifest.xml 的时候,一直没有搞明白,什么时候要给 Activityandroid.intent.category.DEFAULT 过滤器,现在才明白. Android treats all implicit intents passed to startActivity() as if they contained at least one category: "android.intent.category.DEFAULT" (the CATEGOR

  • Android Intent And Intent Filter 2013-09-01

    1.概述 一个应用程序的三个核心组件--activities.services.broadcast receivers,都是通过叫做intents的消息激活.Intent消息是一种同一或不同应用程序中的组件之间延迟运行时绑定的机制.intent本身(是一个Intent对象),是一个被动的数据结构保存一个将要执行的操作的抽象描述,或在广播的情况下,通常是某事已经发生且正在宣告.对于这三种组件,有独立的传送intent的机制: Activity:一个intent对象传递给Context.startA

  • 隐式Intent找不到Activity:android.content.ActivityNotFoundException 2014-11-06

    Here is what i encountered: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=me.waye.intentdemo.intent.action.WAYE_ACTION cat=[me.waye.intentdemo.intent.category.WAYE_CATEGORY] } 在学习隐式启动Activity的时候遇到这个错误,用的书是李刚的疯狂An

  • Chapter VII of the use of Intents and Phone Dialer - on 2010-03-02

    Chapter use of Intents and Phone Dialer Key skills and concepts l use of Intents l create code that interacts with the cell phone hardware l know the difference between dialing and calling So far, this chapter has been introduce you to the basics of

  • intent intent-filter intent filer 2010-10-19

    Components of the application they can respond to tell Android, which implicitly Intent request processing, you can declare one or more Intent Filter. Description of each of Intent Filter Intent of the component can request the ability to respond to