(三)关闭组件(Shutting down components)
来源:互联网 发布:鄂州seo快速优化软件 编辑:程序博客网 时间:2024/05/16 15:44
当对来自于content resolver的请求作出回应时content provider就启动了,当有一个感兴趣的broadcast message被广播时,broadcast receiver启动,所以我们需要知道怎么关闭这些组件。 (1)Activity可以通过调用它自己的finish()方法来关闭,一个Activity也可以通过调用finishActivity()来关闭 另一个Activity(这个Activity是通过调用startActivityForResult()来启动的)。 (2)一个service可以通过调用自己的stopSelf(),或者Context.stopService()来关闭。 当组件不再使用时或者android为了更多组件能运行而回收内存时,android系统是关闭这些组件的,在后面的部分,可以在组件的生命周期中看到更多更详细的介绍。
- (三)关闭组件(Shutting down components)
- (三)关闭组件(Shutting down components)
- Android 开发文档 程序基础——Shutting down components
- Shutting Down a Database
- Shutting down threads cleanly
- AndroidRuntime: Shutting down VM
- GA android shutting down vm
- 关于MathJax CDN关闭的官方声明——MathJax CDN shutting down on April 30, 2017. Alternatives available.
- Docker启动守护进程出现的问题(shutting down daemon due to errors)
- 网卡问题shutting down interface etho解决
- [jetty] lost connection with Eclipse , shutting down.
- mongoDB: shutting down with code:100
- App Components(应用组件)
- 02_组件(Components)
- 扬扬的J2EE学习笔记(三)Components and Roles组件和角色
- web项目部署solr问题解决(Server is shutting down or failed to initialize和solr.clustering.ClusteringComponent)
- STL组件(components)之容器(container)
- 动态数据测试组件(Testing Components)
- javascript中创建数组的方法
- Ogre中的向量Vector3的成员方法
- (一)Android应用程序及组件简介
- (二)启动组件:intent
- BEA-101083
- (三)关闭组件(Shutting down components)
- Jena 本体推理规则(Rules)的介绍
- 简单搭建Windows Phone 7 开发环境
- poj 2185 Milking Grid
- Activity生命周期(Activity Lifecycle)
- Paxos Made Simple [续][原文解释版][转载]
- (四)Activities and Tasks
- hibernate延迟加载详解
- Ogre矩阵Matrix3类和Matrix4类的成员方法