Android Question [SOLVED] Old School girl would like to understand ;-)

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello @Erel, Hello the Others,

In this post : http://www.b4x.com/android/forum/threads/voice-recognition-via-bluetooth-headset.44629/#post-272597 I have noticed a way of coding I didn't know.

Especially those lines made my brain out of order :<

B4X:
Dim adapter As JavaObject = BluetoothAdapter
...
Sub BluetoothAdapter As JavaObject

Do I well understand you can initiate an object with a reference to a sub ? Please, don't take me bad, I really wasn't aware about.
I will have to return to school but if someone has some info about, I would gladly learn. Many thanks as usual
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Thanks theDesolatesoul. I always saw subs like functions and I am happy to understand they could be objects (now I'll have to study what I could do with that )
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…