Android Example Share SQLite database between 2 devices

This is just a proof of concept to show that Device A behave like a server hosting a database and Device B connects to it accessing the "shared" database. It is a response to this question.

Device A - Server (contains database)
Device B - Client (does not have database)

The idea is by implementing the Network example using AsyncStreams and B4XSerializator as explained here.

Use "Server" build configuration to compile the server.
Use "Default" build configuration to compile the client.

In client app, enter the server's IP to connect to.

You can also test with B4J.

1710348160413.png
 

Attachments

  • ShareDB.zip
    17.6 KB · Views: 92
Last edited:
Top