Service要点
来源:互联网 发布:网络的好处 编辑:程序博客网 时间:2024/05/21 09:42
A services runs in the same process as the application in which it is declared and in the main thread of that application, by default. So, if your service performs intensive or blocking operations while the user interacts with an activity from the same application, the service will slow down activity performance. To avoid impacting application performance, you should start a new thread inside the service.
默认情况下,服务和应用程序运行在同一个进程当中,也是应用程序的主线程。当用户和一个activity进行交互时,如果该activity调用的服务要进行复杂或者有可能造成堵塞的操作,这时就很可能会对activity的运行造成影响,甚至出现ANR现象。要避免这种情况,你应该在服务里面启动一个新线程来完成复杂的操作。
- Service要点
- Service Broker 要点
- Service Broker 要点
- Android Service 要点总结
- service 知识要点讲解
- Service要点总结
- Service要点全解析
- Service要点全解析
- Android组件之Service的几个要点
- Android开发——关于Service的一些要点
- ros 开发要点(初级实现topic,service,message,launch)
- 要点
- 要点
- 通过Axis开发Web Service的一些要点,希望能让不熟悉Web Service的开发人员能够迅速掌握Web Service
- Service
- Service
- service
- Service
- Centos5下构建 MySQL服务器和常见问题解决办法
- android 安全设置相关at流程分析
- WinCE系统下基于DirectShow的摄像头应用编程
- 正则表达式30分钟入门教程
- mysql show status 总结
- Service要点
- android 仿照ihone开关
- linux中线程相关函数
- linux命令看文件或文件夹个数
- 第二章 jQuery技术解密 (四)
- 用NPM来管理你的node.js依赖
- MongoDB Tutorial (MangoDB 指南)
- Ogre 1.8碰撞检测
- 第2 章 SQL * Plus命令