in th attached picture number (1) is the DirInternal the b4a application return.
in th pic (2) is my real database path in the folder that called (ok)
what is the right way that let me access the database (d77.db) in the folder (ok)
i'm using the following code but idon't know how to navigate to my database in the folder (ok).
B4X:
If FirstTime Then
If File.Exists(File.DirInternal, "d77.db") = True Then
SQL1.Initialize(File.DirInternal, "d77.db", False)
Msgbox("connected","")
Else
Msgbox("NOT connected","")
End If
End If
i used File.DirRootExternal and it returns (/storage/emulated/0) in b4a
and i could not find that in my device
actually how access file in my device in direct path without using the (File) object in b4a
something like (file://data/data/dbase.db)
in the attached image shows my SD paths and device storage paths.
File.DirRootExternal returns the correct path to the secondary storage. It is possible that it looks different than the path that you see in this explorer app but it is correct.
FIle.DirInternal cannot be accessed by other applications.