Git Product home page Git Product logo

xutil's Issues

BLEHelper 类的问题

当调用BleHelper.stopSearch()方法后,onSearchCompleted回调不会执行。虽然也没什么影响但是感觉能有回调就最好了

大神是否继续更新呢?

很好很简洁轻量的库,
只是缺少对于android10 的新特性的支持
比如,wifi连接

持续关注中~

关于XUtil.init

有如下代码

if (ProcessUtils.isMainProcess()) {
            onMainProcess();
}

ps:代码运行一切正常,在主进程中成功返回了trueonMainProcess()也成功的执行了。

问题:项目中集成了一个推送框架,需要在onMainProcess()中进行注册,成功注册。但是框架内有一个保活服务,会在启动后立马被停止。

过程:由于框架未打印任何信息,debug过程及其痛苦,在测试到ProcessUtils.isMainProcess()时发现如果没有调用该方法,问题就解决了,随即重写了isMainProcess(),果然,重写后的方法不会再出问题,查看ProcessUtils源码发现需要初始化XUtil!!!

解决:在调用方法前需要,XUtil.init(this);

意见:也不是bug啦,但是由于文档没有提到需要初始化,这种问题又不好一上来就看源码,希望能适当完善一下文档,幸苦了。

轮询工具类PollingUtils 方法bug

image
这个方法不生效PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_NO_CREATE);应该是PendingIntent pendingIntent = PendingIntent.getService(context, 0, intent, PendingIntent.FLAG_NO_CREATE);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.