GithubHelp home page GithubHelp logo

Comments (6)

etman55 avatar etman55 commented on May 19, 2024

same here and i get this error in my logcat when i exit Scanning activity

2020-06-25 18:42:01.679 21140-21140/com.mazenrashed.universalbluetoothprinter E/ActivityThread: Activity com.mazenrashed.printooth.ui.ScanningActivity has leaked IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@bfad86c that was originally registered here. Are you missing a call to unregisterReceiver()? android.app.IntentReceiverLeaked: Activity com.mazenrashed.printooth.ui.ScanningActivity has leaked IntentReceiver com.mazenrashed.printooth.utilities.Bluetooth$3@bfad86c that was originally registered here. Are you missing a call to unregisterReceiver()? at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:1603) at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:1368) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1539) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1512) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1500) at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:627) at com.mazenrashed.printooth.utilities.Bluetooth.startScanning(Bluetooth.java:198) at com.mazenrashed.printooth.ui.ScanningActivity$onStart$1.run(ScanningActivity.kt:114) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7682) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

from printooth.

etman55 avatar etman55 commented on May 19, 2024

After searching this solution worked for me in android 10 https://stackoverflow.com/a/58669558/7409951

from printooth.

semnazri avatar semnazri commented on May 19, 2024

@etman55 hi man, can you give detail where you put ACCESS_BACKGROUND_LOCATION ? on project manifest or , library manifest?

from printooth.

etman55 avatar etman55 commented on May 19, 2024

@semnazri Actually i used my own bluetooth implementation after that when i found the one in library not optimized for android 10.
then i added my paired device to the library through this :
Printooth.setPrinter(printerName, printerAddress)

from printooth.

mazenrashed avatar mazenrashed commented on May 19, 2024

Solved in v 1.2.2

from printooth.

TidelxD avatar TidelxD commented on May 19, 2024

I have problem on andorid 11 when scanning for bluetooth device its hows noth but after disable bluetooth and renable it
it display the device but :
when select any device or press the back button the app crash
( meanwhile it works on andorid 8 )
any solution

from printooth.

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.