Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facing Issue in android12+ or android 13 with this library #533

Closed
uniqueram opened this issue Sep 13, 2023 · 7 comments
Closed

facing Issue in android12+ or android 13 with this library #533

uniqueram opened this issue Sep 13, 2023 · 7 comments

Comments

@uniqueram
Copy link

uniqueram commented Sep 13, 2023

Everything was working fine until Android 11 but things broke afterward, The application is opening as it should in Android 13 but when the print button is pressed from the scale the application keeps on crashing Also using the external device it is hard to logcat the possible error so I am stuck here what went wrong in android 13 when print button is pressed application crashed. I think the possible error is due to USB communication when the communication is initiated it crashes.

@uniqueram
Copy link
Author

I have tried #494 without any success.

@uniqueram
Copy link
Author

application crashes only when the data is sent from the scale.

@uniqueram
Copy link
Author

@kai-morich

@kai-morich
Copy link
Collaborator

please provide callstack and use more specific title

@uniqueram uniqueram changed the title Anyone facing Issue in android12+ or android 13 with this library? facing Issue in android12+ or android 13 with this library Sep 14, 2023
@uniqueram
Copy link
Author

As I am unable to log the problem as the application is not connected to android studio while using with the scale via USB cable so asking anyone facing issue while running this application in android 12+

@kai-morich
Copy link
Collaborator

You can connect adb/android-studio over wifi. Setup sometimes a bit shaky for me, e.g. USB adb connection first, then switch to tcp, but sometimes only working on newly rebooted Android device.

Does the same issue happen with https://github.com/kai-morich/SimpleUsbTerminal?

@uniqueram
Copy link
Author

I have solved the issue in one place I haven't consider the pendingIntent.flag_Immutable:0; after placing this it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants