Hi Erel,
Thanks a lot for your help.
I tried the above on an android phone I am using for development and it works properly.
However when I tried on the "POS" (Custom Hardware) I am using for the final application it doesn't work all the time.
When checking, I realized that on the POS, under system settings there is an option to Show/Hide the Nav Bar. If show is selected, then the issue persists, otherwise no problem.
I am not sure if there is anything that I can do about it.
Thanks
iCAB