Android Question Package folder no longer showing in android/data

GuyBooth

Active Member
Licensed User
Longtime User
In chasing down another problem I uninstalled my app.
When I reinstalled it, I could no longer find the folder /sdcard/android/data/b4a.<packagename>

This is the case for v 8.0 as well as 8.3 beta.
Has something changed?
Or did I always have to create it myself? I rarely install this app from scratch, so I sometimes forget how it's done.
 
Last edited:

KZero

Active Member
Licensed User
Longtime User
folder path doesn't contain /b4a.

use RuntimePermissions library to get the right path

B4X:
Sub Process_Globals
Dim rp As RuntimePermissions
End Sub

Sub Activity_Create(FirstTime As Boolean)
Dim dir As String =rp.GetSafeDirDefaultExternal("")
log(dir)
End Sub
 
Upvote 0

GuyBooth

Active Member
Licensed User
Longtime User
I guess I figured out I have to change the code I was using in my app to create the right directories under 4.4 plus.
Thanks KZero you put me on the right track.
 
Upvote 0
Top