xuexiangjys / xutil Goto Github PK
View Code? Open in Web Editor NEW一个方便实用的Android工具类库
Home Page: https://xuexiangjys.github.io/XUtil/
一个方便实用的Android工具类库
Home Page: https://xuexiangjys.github.io/XUtil/
1.1.8 2.0.0 AppUtils.installApp 有bug, 1.1.6 可以成功
当调用BleHelper.stopSearch()方法后,onSearchCompleted回调不会执行。虽然也没什么影响但是感觉能有回调就最好了
很好很简洁轻量的库,
只是缺少对于android10 的新特性的支持
比如,wifi连接
持续关注中~
if (ProcessUtils.isMainProcess()) {
onMainProcess();
}
ps:代码运行一切正常,在主进程中成功返回了true
,onMainProcess()
也成功的执行了。
问题:项目中集成了一个推送框架,需要在onMainProcess()
中进行注册,成功注册。但是框架内有一个保活服务,会在启动后立马被停止。
过程:由于框架未打印任何信息,debug过程及其痛苦,在测试到ProcessUtils.isMainProcess()
时发现如果没有调用该方法,问题就解决了,随即重写了isMainProcess()
,果然,重写后的方法不会再出问题,查看ProcessUtils
源码发现需要初始化XUtil
!!!
解决:在调用方法前需要,XUtil.init(this);
意见:也不是bug啦,但是由于文档没有提到需要初始化,这种问题又不好一上来就看源码,希望能适当完善一下文档,幸苦了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.