Olaan Expert Licensed User Longtime User Aug 19, 2012 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2012 #2 If the file is stored on the storage card then it can be accessed from any app. Upvote 0
Olaan Expert Licensed User Longtime User Aug 20, 2012 #3 Erel said: If the file is stored on the storage card then it can be accessed from any app. Click to expand... 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: Aug 20, 2012 Upvote 0
Erel said: If the file is stored on the storage card then it can be accessed from any app. Click to expand... 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
mc73 Well-Known Member Licensed User Longtime User Aug 20, 2012 #4 You can use file.dirDefaultExternal for this. The complete path is given by Code: Copy file.combine(file.dirDefaultExternal,"yourFileName") Upvote 0
You can use file.dirDefaultExternal for this. The complete path is given by Code: Copy file.combine(file.dirDefaultExternal,"yourFileName")
Olaan Expert Licensed User Longtime User Aug 20, 2012 #5 mc73 said: You can use file.dirDefaultExternal for this. The complete path is given by Code: Copy file.combine(file.dirDefaultExternal,"yourFileName") Click to expand... 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: Aug 20, 2012 Upvote 0
mc73 said: You can use file.dirDefaultExternal for this. The complete path is given by Code: Copy file.combine(file.dirDefaultExternal,"yourFileName") Click to expand... 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?