Jun 1, 2024 Replies: 7 This is just another example based on the ManageExternalStorage class provided by @agraham. It is a response to this question. B4ARepositoryWriter - writes a text file to an "external" directory (you can view using File Explorer). B4ARepositoryReader - reads the text file in this directory if it exist. I guess if we are able to read a text file then it should be possible to read keyvaluestore or sqlite files. Note: I have modified slightly the class by modify the package name by reading Application.PackageName Credit to Andrew Graham Attachments B4ARepositoryWriter.zip B4ARepositoryWriter.zip 11.3 KB · Views: 602 B4ARepositoryReader.zip B4ARepositoryReader.zip 11.4 KB · Views: 584 Click to expand...
This is just another example based on the ManageExternalStorage class provided by @agraham. It is a response to this question. B4ARepositoryWriter - writes a text file to an "external" directory (you can view using File Explorer). B4ARepositoryReader - reads the text file in this directory if it exist. I guess if we are able to read a text file then it should be possible to read keyvaluestore or sqlite files. Note: I have modified slightly the class by modify the package name by reading Application.PackageName Credit to Andrew Graham
toby Well-Known Member Licensed User Longtime User Jun 1, 2024 #2 Since your apps won't be published to the Play store,you could keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps.
Since your apps won't be published to the Play store,you could keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps.
toby Well-Known Member Licensed User Longtime User Jun 1, 2024 #3 toby said: Since your apps won't be published to the Play store,you could keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps. Click to expand... This was intended to answer the question https://www.b4x.com/android/forum/threads/sharing-info-between-3-apps.161442/
toby said: Since your apps won't be published to the Play store,you could keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps. Click to expand... This was intended to answer the question https://www.b4x.com/android/forum/threads/sharing-info-between-3-apps.161442/
aeric Expert Licensed User Longtime User Jun 1, 2024 #4 toby said: Since your apps won't be published to the Play store,you could keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps. Click to expand... I was unable to get it work under Android 14 even though I set the targetSDK to 23.
toby said: Since your apps won't be published to the Play store,you could keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps. Click to expand... I was unable to get it work under Android 14 even though I set the targetSDK to 23.
aeric Expert Licensed User Longtime User Jun 1, 2024 #5 aeric said: I was unable to get it work under Android 14 even though I set the targetSDK to 23. Click to expand... I think I missed the RuntimePermissions. I can't remember why it was an issue last time. B4X: Dim rp As RuntimePermissions rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE) Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) Log($"${Permission} = ${Result}"$)
aeric said: I was unable to get it work under Android 14 even though I set the targetSDK to 23. Click to expand... I think I missed the RuntimePermissions. I can't remember why it was an issue last time. B4X: Dim rp As RuntimePermissions rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE) Wait For B4XPage_PermissionResult (Permission As String, Result As Boolean) Log($"${Permission} = ${Result}"$)
aeric Expert Licensed User Longtime User Jun 1, 2024 #6 toby said: keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps. Click to expand... I agree this is much simpler. toby said: This was intended to answer the question https://www.b4x.com/android/forum/threads/sharing-info-between-3-apps.161442/ Click to expand... Can you post your solution to that thread? It will be more easier to read and obvious to the OP.
toby said: keep it simple by setting sdk level to 28 and storing files at File.DirRootExternal location, directly accessible to all 3 apps. Click to expand... I agree this is much simpler. toby said: This was intended to answer the question https://www.b4x.com/android/forum/threads/sharing-info-between-3-apps.161442/ Click to expand... Can you post your solution to that thread? It will be more easier to read and obvious to the OP.
Zeev Goldstein Well-Known Member Licensed User Longtime User Jun 17, 2024 #7 exactly what i was searching for long time one question: will it be accepted by google play store?
aeric Expert Licensed User Longtime User Jun 17, 2024 #8 Zeev Goldstein said: exactly what i was searching for long time one question: will it be accepted by google play store? Click to expand... I don't think so. As mentioned by agraham, it may not allow in playstore.
Zeev Goldstein said: exactly what i was searching for long time one question: will it be accepted by google play store? Click to expand... I don't think so. As mentioned by agraham, it may not allow in playstore.