Comments (5)
@bmdalton You are right, the proposed PR in #53 only solves the issue described in the title :)
from usbserial.
Update: if you have the issue of the app crashing after you detach the USB device (when it was functionally working at whatever you need it to do), this does NOT fix that.
from usbserial.
This fix is still not merged. @bmdalton Did you try it on the pull request branch?
from usbserial.
I have. I have a copy of the code running in Android Studio, so I physically made the changes there. In both the original and the updated version, I have the same crash, which I have discovered is the result of modification of one line of code.
In your sample app, you have
while I have updated this to be
As you can see, I change "mActivity.get().display.append(data);" to "mActivity.get().setData(dataS);" which subsequently causes the crash. When I comment out that line, the app does not crash when I disconnect the USB device however it also doesn't function.
from usbserial.
any solutions for this crash issue?
from usbserial.
Related Issues (20)
- Losing Bytes? HOT 2
- getDeviceList empty HOT 2
- Newer FTDI devices use a 512 byte packet which is not supported by the existing FTDISerialDevice class HOT 1
- library still maintained ? HOT 1
- NPE at FTDISerialDevice.getBcdDevice()
- flash back on android 12?
- PL2303GC HOT 1
- UsbEndpoint.getAddress() method crashes the app.
- Port not opened and ACTION USB DEVICE NOT WORKING HOT 1
- any example project in hybrid ionic framework / native android ?
- I want to read data from USB whenever a USB device gives a flag. are there any methods to do so.?
- Issue with SDK > 31 on Android 12 HOT 1
- Write Thread and Read Thread Stops at any point of time HOT 1
- PL2303GL device not working HOT 2
- type and metro errors
- How to open the Arduino serial-port without it restarts
- java.lang.IllegalArgumentException: x.y.z: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
- syncRead fail after writing large syncWrite
- Host and Accessory communication(NOT AN ISSUE) HOT 2
- new Intent(ACTION_USB_PERMISSION), 0); doesn't work in recent Android version HOT 1
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 usbserial.