android
文章平均质量分 58
flyalizee
这个作者很懒,什么都没留下…
展开
-
Android 程序crash后重新启动
以前只知道Android程序在crash后系统会重启该程序,今天验证了一下几种重启的场景。 1. 包含service, 如果程序crash的时候,运行着service,那么系统会重新启动service 2. 不包含service,只有一个Activity,那么系统不会重新启动该Activity 3. 不包含service,当前栈中包含两个Activity, A–>B, 如果B crash,那么原创 2015-08-11 23:16:44 · 1141 阅读 · 0 评论 -
Diving Into Android 'M' Doze
One of the headlining features of the upcoming Android ‘M’ release is something Google has termed “doze” - a mechanism by which applications are forced into limited activity when the device has been si转载 2015-08-11 23:28:04 · 985 阅读 · 0 评论 -
Android socket在系统休眠情况下调研
做了3年的IM应用,一直没有确认过socket在系统休眠的情况下会不会就收不到消息了,网上也搜过一些资料说android手机分为AP和BP两个部分,系统休眠的时候AP是休眠的,而BP是不休眠的,网络协议栈是运行在BP层的,所以当BP收到数据包的时候,系统会唤醒AP,但是AP运行的时间是很短的。虽然听起来很有道理的样子,但是没有亲手测试过,还是一块心病~~~,今天又想起这事,索性动手自己写代码测试看看原创 2015-07-21 22:59:14 · 3225 阅读 · 1 评论 -
open source project
https://github.com/Trinea/android-open-project转载 2015-09-01 17:00:31 · 426 阅读 · 0 评论