Hi,
It looks like you changed the sample app. Please check if the sample app is working on your device as expected and then have a close look at the documentation and the sample app code to see how the implmentation is done and how changes affect the code.
Thx and greetings
Nicola
Dzaqirah Tarmidi