龙须面

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年7月4日

摘要: 上图就是android应用程序的一个生命周期,需要明确的一点是,在stoped阶段,没有任何代码执行!通常情况下,不需要实现destroyed的方法来清理系统的垃圾以及其它操作,但是在下列情况时,要实现它: activity includes background threads that you created duringonCreate()or other other long-running resources that could potentially leak memory if not properly closed, you should kill them durin... 阅读全文
posted @ 2012-07-04 13:51 木子小黑 阅读(150) 评论(0) 推荐(0) 编辑

摘要: 1、Does not crash if the user receives a phone call or switches to another app while using your app.Does not consume valuable system resources when the user is not actively using it.Does not lose the user's progress if they leave your app and return to it at a later time.Does not crash or lose th 阅读全文
posted @ 2012-07-04 13:48 木子小黑 阅读(115) 评论(0) 推荐(0) 编辑

摘要: Build target:将来应用程序将要运行在那个系统版本上min sdk version:使用的api版本,看看google的解释:1、Select a build target. This is the platform version against which you will compile your app. We recommend that you select the latest version possible. You can still build your app to support older versions, but setting the build . 阅读全文
posted @ 2012-07-04 11:34 木子小黑 阅读(3120) 评论(0) 推荐(0) 编辑