Android Question two or more android devices to access 1. (shared) sqlite database

FrankDev

Active Member
Licensed User
Longtime User
hello

is it possible from 2 or more android devices (in my case tablets) to access 1. (shared) sqlite database.

background.
i want to have all this in a common network.
From 2 tablets (or more) i want to access one database.

is sqlite 'so similar' to microsoft access... so that you don't need a 'server'. So a file based database ?

Regards
Frank
 

FrankDev

Active Member
Licensed User
Longtime User
hi @aeric


but I am not looking for this kind of solution. I just want to do it with B4a and a (file) database.
Otherwise I have to set up a server again ?
Then I can dock to a MySql_Database with a little json and php. ?

Greetings Frank
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
If I am not wrong, other Android device cannot write into another Android due to file permission, the internal directory is not accessible.
There are solutions by turning your Android into a web server by @Star-Dust but I never tested before.

Edit: Other solution like MQTT also can be consider and also I never tested before.
 
Upvote 0

Marvel

Active Member
Licensed User
Another option is to keep a separate database on each device and update missing entries on each database base when they connect.

It won't be simple, but without a server, that's the only solution I can think of.
 
Upvote 0
Top