Is there using the same db.txt ?

Theera

Well-Known Member
Licensed User
Longtime User
Hi all,
If I have 2 widget,I need that both of them using the same db.txt. I don't know that it could or not. please show me the example.

Best regards
Theera
 

Theera

Well-Known Member
Licensed User
Longtime User
If the file is stored on the storage card then it can be accessed from any app.

Hi all,
How to refer the stored file on the storage card ? Please to show the example to me.
Is this format?
The folder is: <storage card>/Android/data/<package>/files/
It will be created if required.

Best Regards
Theera
 
Last edited:
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
You can use file.dirDefaultExternal for this. The complete path is given by
B4X:
file.combine(file.dirDefaultExternal,"yourFileName")
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
You can use file.dirDefaultExternal for this. The complete path is given by
B4X:
file.combine(file.dirDefaultExternal,"yourFileName")

Many Thank,MC73

I need a new problem,If I have 1 widget,but I have more than 1 databases i.e. db.txt ,db1.txt,..etc. I need change database in
widget,How to do?
 
Last edited:
Upvote 0
Top