-
Notifications
You must be signed in to change notification settings - Fork 174
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
Raspberry pi ButtonInputDriver mutiple times #115
Comments
Are you adding any delays between opening/closing/opening? Perhaps there's some asynchronous logic that isn't ready by the next call. |
Basically i did the code below inside onCreate() method.
I also tried putting a time delay
Both cases I have an IllegalArgumentException after 300 to 350 calls of the register() method. |
This may be something to put in the Android Things issue tracker, as it may be more of a platform bug. This probably shouldn't be done in a normal application though, for what it's worth. |
I am simulating a situation in raspberry pi where I call the register() method several times, approximately 300 times and after that number is generated an exception as below.
Do you know what might be happening? In all the calls I call the register and close them.
After running 300 times the raspberry does not respond to any other component that I try to use the ButtonInputDriver, only after the manual reset of raspberry the code returns to work
The text was updated successfully, but these errors were encountered: