android in practice_Threads and concurrency
you can run services in separate processes, but that isn’t arequirement. In fact, unless you specify a process ID explicitly, they won’t.
one golden rule about user interfaces is to always remainresponsive.
When launching your application, Android will spawn a singlesystem process running a single thread of execution.this thread is called the main application thread,
main user interface thread, or UI thread.
Writing code like this may freeze your application—Android can’t continue drawingyour application’s user interface until the download completes because bothdownload and UI code run in the same thread.
Any non-blocking or fast operation is fine to executeon the main application thread that’s running when an application starts. Anythingelse should be executed on a different thread.
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer