Open
Conversation
Contributor
Author
|
使用此功能需要用户通过“设置”>“安全性”>“应用”使用“使用情况访问”启用对此应用的访问权限。目前仅仅通过appOps Manager 引入了对萝莉炮及以上系统的权限检测,对于第版本系统,由于没有办法检查权限,所以暂时对他们关闭了功能,防止未知错误的发生,雨后可以通过添加一个intent去引导用户给予程序android.permission.PACKAGE_USAGE_STATS,然后在在4.4及以下系统开放。 |
Contributor
Author
|
本功能在安卓5.1.1及M下测试通过, 4.4.4及以下由于没有测试用机器,没有测试,但是暂时屏蔽了他们使用这项功能。 |
init buildbot
通知修改和IOS服务器增加
change to openjdk7, because, openjdk8 with android not support by travis-ci
use build-tools-23.0.2 inside of build-tools-23.0.3
增加了提督信息的页面,可以直接查看名字等级各种时间
2、updatetask加入了回调方法以保证界面刷新在数据刷新后执行
# Conflicts: # app/src/main/java/me/crafter/android/zjsnviewer/InfoActivity.java # app/src/main/java/me/crafter/android/zjsnviewer/UpdateTask.java
页面逻辑大改,info成为主页面
update from origin
(未实际测试,但从CPU及内存上可以看到CPU与内存的占用都降低了)
2、在抽屉里添加了总开关和自动模式开关
省电(未实际测试)+抽屉两个开关
…L instead. hide two preference in settings
update from origin
2、增加秘书舰称谓设置,设置后通知信息会以[秘书舰] + 通知信息形式提示
常驻通知开关与通知title的改动
merge from PaleNeutron
PaleNeutron
pushed a commit
to PaleNeutron/ZjsnViewer
that referenced
this pull request
Jun 15, 2016
Add &gz=1 support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
和以前的代码里的判断方式不同,这回不仅仅判断了是否存在进程, 而是通过该应用使用情况统计信息来判断是否应用当前的详细状态,比如是否处于后台, 是否在前台, 能够更加详细的获取应用的信息,防止游戏过程中这边登录倒是掉线
应用使用情况统计信息
您现在可以通过新的 android.app.usage API 访问 Android 设备上的应用使用情况历史记录。此 API 提供了比被弃用的 getRecentTasks() 方法更详细的使用情况信息。要使用此 API,必须先在您的清单中声明 "android.permission.PACKAGE_USAGE_STATS" 权限。用户还必须通过“设置”>“安全性”>“应用”使用“使用情况访问”启用对此应用的访问权限。