Android Question Send Maps/Lists over bluetooth?

techknight

Well-Known Member
Licensed User
Longtime User
Is it possible to send a Map or List object over a bluetooth connection instead of regular byte arrays? If so, how would I go about doing that?

I saw something on B4XSerializator but its not really "clicking" as it seems complicated, and its sending canvas data instead of a Map or a List so not sure how to do 2 + 2 there.

Thanks.

Edit: What I am attempting to accomplish is send SQL queries over the bluetooth connection to a "master" device, and get back its data in either Map or List form. So I can keep 2 devices/2 apps synchronized as all the stats are kept in the master app.
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
Is it possible to send a Map or List object over a bluetooth connection instead of regular byte arrays? If so, how would I go about doing that?
Yes. With B4XSerializator.

It is explained in this tutorial:


I don't see how it can be simpler. It takes exactly a single line to convert the collection to an array of bytes.
 
Upvote 0
Top