Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小米5s上闹钟不起作用 #5

Open
longshiming opened this issue Apr 1, 2017 · 5 comments
Open

小米5s上闹钟不起作用 #5

longshiming opened this issue Apr 1, 2017 · 5 comments

Comments

@longshiming
Copy link

在小米5s上闹钟经常不起作用,就算偶尔起作用也会有一两分钟的延时

@loonggg
Copy link
Owner

loonggg commented Apr 1, 2017

@longshiming 确实有延迟的问题,不同的手机和rom就会出现这个问题,在小米手机系统上确实尤为严重。目前我没有好的解决方案。

@longshiming
Copy link
Author

不光是延迟,在小米5s上经常设置无效,另外两部手机还行

@loonggg
Copy link
Owner

loonggg commented Apr 1, 2017

@longshiming 我很早之前,在红米上试过,没问题,小米4也试过,仅仅有些延迟的问题,由于我没有小米手机,不知道最新的rom有什么问题,这个闹钟问题,一直是 Android 界的难题,尤其是国内,国内手机厂商,各种自己修改系统做rom,很乱。

@longshiming
Copy link
Author

android.intent.action.TIME_TICK 能不能利用这个广播 小米系统中alarmManager会进行提醒的合并,进行15分钟对齐。系统每过一分钟都会发一个广播,这个是可以利用的。

@haogg1996
Copy link

setAlarm里面的设置闹钟的方式改成am.set(AlarmManager.RTC_WAKEUP,calMethod(week, calendar.getTimeInMillis()),sender);,MIUI好像将setWindow禁用掉了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants