Android Memory Leak android.os.message usb scanner

Hi guys, I am facing a memory leak in Android in an unexpected location. There is a tablet and a hardware usb barcode scanner. The input from the scanner must be used to identify the product. So I extended the edittext and on its keyListener intercepted the input when the usb barcode scanner input comes in and from that input, I handle the rest of my usage.

The problem occurs when I switch between fragments, memory consumption increases and with deeper analysis using MAT this is what I get.

enter image description here

I can't trace this back to any part in my code, could you shed some light on this?

Edit: Upon further investigation, I found that calling notifyDataSetChanged () on a listview adapter with a usb scanner attached is the root cause of this issue. Any hacks to handle this?

+3
android android-input-method memory-leaks barcode-scanner


source to share


No one has answered this question yet

Check out similar questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
3044
Making a memory leak with Java
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
1844
What is "Context" on Android?
1146
performSelector may leak because its selector is unknown
1042
The result was a leak of the window that was originally added



All Articles
Loading...
X
Show
Funny
Dev
Pics