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.

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)Studio技巧 之 自动命名APK
  2. Android之解决androidx.appcompat.widget
  3. android 2 app development
  4. Android遍历SqlLite cursor对象:
  5. [置顶] android调用.net的webservice的例
  6. Android下载文件提示文件不存在。。。 ja
  7. 一个PhoneGap写的小应用
  8. Android播播放完SD卡指定文件夹音乐之后,
  9. Android(安卓)5.0以上版本去掉Button自带
  10. Android Intent用法详解