Giter Site home page Giter Site logo

Comments (5)

omaraflak avatar omaraflak commented on June 6, 2024

Sorry I don't. I actually stopped using Dexter, it turns out it's pretty simple to implement permission requests on Android.
https://developer.android.com/training/permissions/requesting#java

from bluetooth-library.

mr0bles avatar mr0bles commented on June 6, 2024

@omaraflak
I checked that you solved some leaks (receivers) in the current code, when you going to publish new version?

from bluetooth-library.

omaraflak avatar omaraflak commented on June 6, 2024

I updated the library, it should be available in few minutes.

implementation 'me.aflak.libraries:bluetooth:1.3.4'

from bluetooth-library.

mr0bles avatar mr0bles commented on June 6, 2024

I have a leak on bluetooth.startScanning(); when close (or press back) when i scanning

i'll try solved it to help you

06-12 17:56:24.887 2424-2424/xx.xxxxxxx.xxx E/ActivityThread: Activity xx.xxxxxxx.xxx.ui.lector.scan.view.ScanActivity has leaked IntentReceiver me.aflak.bluetooth.Bluetooth$6@117f19f8 that was originally registered here. Are you missing a call to unregisterReceiver()? android.app.IntentReceiverLeaked: Activity xx.xxxxxxx.xxx.ui.lector.scan.view.ScanActivity has leaked IntentReceiver me.aflak.bluetooth.Bluetooth$6@117f19f8 that was originally registered here. Are you missing a call to unregisterReceiver()? at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1015) at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:802) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:2078) at android.app.ContextImpl.registerReceiver(ContextImpl.java:2058) at android.app.ContextImpl.registerReceiver(ContextImpl.java:2052) at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:504) at me.aflak.bluetooth.Bluetooth.startScanning(Bluetooth.java:217) at xx.xxxxxxx.xxx.ui.lector.scan.interactor.ScanInteractorImpl.scanDevices(ScanInteractorImpl.java:94) at xx.xxxxxxx.xxx.ui.lector.scan.presenter.ScanPresenterImpl.startScanning(ScanPresenterImpl.java:46) at xx.xxxxxxx.xxx.ui.lector.scan.presenter.ScanPresenterImpl.onStart(ScanPresenterImpl.java:27) at xx.xxxxxxx.xxx.ui.lector.scan.view.ScanActivity.onStart(ScanActivity.java:146) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1264) at android.app.Activity.performStart(Activity.java:6646) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3096) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3243) at android.app.ActivityThread.access$1000(ActivityThread.java:218) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1718) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:6914) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

from bluetooth-library.

omaraflak avatar omaraflak commented on June 6, 2024

You have to call bluetooth.onStop(); before quitting

from bluetooth-library.

Related Issues (20)

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.