Comments (6)
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.
After searching this solution worked for me in android 10 https://stackoverflow.com/a/58669558/7409951
from printooth.
@etman55 hi man, can you give detail where you put ACCESS_BACKGROUND_LOCATION ? on project manifest or , library manifest?
from printooth.
@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.
Solved in v 1.2.2
from printooth.
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)
- Two Printables in same line won't dsiplay correct way HOT 2
- setPrinterInfo() -> JNIWrapper.getPapreList() Causes exception
- Permissions error on Android 12, 13 HOT 3
- How can I print pdf using this library
- not support Thai language HOT 2
- How to check if printer is printed
- Problem in scanning_activity.xml on SwipeRefreshLayout HOT 3
- Receiver Not Registered
- Font Style or Font Family
- TextPrintable is not working
- Print multiple text in single row
- Scanning activity freezes on swiping state when i try to scan devices HOT 4
- Problem on Xiaomi Devices
- Problem with TextPrintable Alignment
- charset CP437 for £ sign
- Problem printing
- How to set printer width? HOT 1
- Cant Implement in Jetpack Compose
- Can not implement multiple time printing
- can't use theme material
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from printooth.