Samsung Galaxy 4 classic bezel rotation detection in Android Studio (Java)

436 Views Asked by At

I want to be able to add a value to an integral that I have:

Rotating clockwise would increase the value by one

Rotating counter-clockwise would decrease the value by one

I tried searching and I found "rotary input", but I didn't really manage to put it in practice (I mostly found it all talking about scrollview)

How can I achieve it?

1

There are 1 best solutions below