Dave (M), and Dave (H), thank you guys, for pointing me in the right direction.

After struggling with B4A for some time, I managed to accomplish precisely what I had in mind, and more.

I now have an apk that acts like a numeric keypad for access control.

As what often happens when one learns a new environment, I went overboard with some bells and whistles which were not planned on. (Automatic enabling/disabling of the bluetooth in my Android on app launch, text-to-speech annotations and so on)

I'm sure an expert will still find it very rough at the edges, but it serves my purpose well.

Name:  BluePad.png
Views: 2582
Size:  40.9 KB

If anybody would like to play around with this (remember, you'll need a bluetooth module to talk to), please pm me.

Again, thanks.

Anand