Spenremote sdk does not emit event for single press it emits only for long press?

I am trying to handle single press in my app but it doesn’t any event on single press it emits event only on long press ?

 private val mButtonEventListener = SpenEventListener { event ->
    val button = ButtonEvent(event)
    if (button.action == ButtonEvent.ACTION_DOWN) {
        runOnUiThread {
            Toast.makeText(this@MainActivity, "button pressed", Toast.LENGTH_LONG).show()

    } else if (button.action == ButtonEvent.ACTION_UP) {
        runOnUiThread {
            Toast.makeText(this@MainActivity, "Button Released", Toast.LENGTH_SHORT).show()


I did not face the issue you mentioned. I have followed the official sample app in the SDK documentation. Does that app work for you?

Here is the link: https://developer.samsung.com/galaxy-spen-remote/download.html#Samples

You can also check out the code lab: https://developer.samsung.com/codelab/s-pen-remote/s-pen-remote-sdk/development.html