» 您尚未登录:请 登录 | 注册 | 标签 | 帮助 | 小黑屋 |


发新话题
打印

Android M的Doze比绿色守护还牛逼

posted by wap, platform: Chrome
就是关闭屏幕后自动进入的省电模式,这次:
1、除非收到Google Cloud的高优先级消息,否则不会打开网络访问。国产厂商自己建立的后台推送全部完蛋,哈哈哈
2、唤醒锁定无视,以前总有软件在后台偷偷跑导致系统无法处于睡眠状态,这次不准你跑了,保持睡觉不准叫我!
3、原定与AlarmManager类提醒被禁止,除非你已经设置thesetAlarmClock()方法和AlarmManager.setAndAllowWhileIdle()提醒。
4、WiFi扫描,这个其实最没必要,老子都睡觉了还扫个毛的WIFI啊
5、睡觉不同步,这个好。

PS:然而在中国,这有个卵用?你啥时候回来?

================================
Doze
If a device is unplugged and left stationary with the screen off for a period of time, it goes into Doze mode where it attempts to keep the system in a sleep state. In this mode, devices periodically resume normal operations for brief periods of time so that app syncing can occur and the system can perform any pending operations.
The following restrictions apply to your apps while in Doze:
Network access is disabled, unless your app receives a high priority Google Cloud Messaging tickle.
Wake locks are ignored.
Alarms scheduled with the AlarmManager class are disabled, except for alarms that you've set with thesetAlarmClock() method and AlarmManager.setAndAllowWhileIdle().
WiFi scans are not performed.
Syncs and jobs for your sync adapters and JobScheduler are not permitted to run.
When the device exits doze, it executes any jobs and syncs that are pending.


TOP

posted by wap, platform: Chrome
引用:
原帖由 @blocparty  于 2015-5-28 15:39 发表
有几个通信软件用的是gcm,再好中国水土不服
不走GCM,自己建的后台推送一来根本没法跑(因为没法在睡眠的时候后台运行了),二来根本无法在睡眠的时候推送信息,所以只有走GCM一条路了。

不过我国要普及Android M估计要很久了。不过为了国外用户,QQ、微信、支付宝之类肯定必须要考虑Android M的特性且支持的,不然国外用户没法用啊。

如果Android One的机型要在国内搞、并在国内推Play市场、建立GCM,那还是有看头

本帖最后由 jun4rui 于 2015-5-28 15:42 通过手机版编辑



TOP

posted by wap, platform: UC
引用:
原帖由 @巴克兹  于 2015-5-28 16:00 发表
已下好,要不要刷呢…
看机锋上有人说支付宝闪退
主力机就别尝鲜了


TOP

发新话题
     
官方公众号及微博