androidthings / sample-simplepio

Basic Peripheral I/O examples with Android Things
Apache License 2.0
190 stars 79 forks source link

late response of button interrupt #10

Closed manish5897 closed 5 years ago

manish5897 commented 5 years ago

On very first time button pressed, repsonse not get instantly Logcat : GPIO changed, button pressed

and so on button pressed response not got instantly.

Yanqilong commented 5 years ago

I meet the same problem, Logcat print log delayed or not log print when button pressed, So I don't mark sure trigger the edge interrupt

manish5897 commented 5 years ago

The issue is only with the LOGCAT, gpio status change on every button pressed.

If you add toast rather than logcat, then toast appear every time when you button pressed.