I use B4A version 9.50 and B4A Bridge version 2.60. I am having problems with the Log command ("DirAssets:" & File.DirAssets). This returns the string text "DirAssets: AssetsDir".
The result is:
Logger connected to: samsung SM-J730F
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
DirAssets: AssetsDir
DirDefaultExternal: /storage/emulated/0/Android/data/b4a.example/files
DirRootExternal: /storage/emulated/0
DirInternal: /data/user/0/b4a.example/files
DirInternalCache: /data/user/0/b4a.example/cache
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Service (starter) Destroy (ignored)**
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
How can I solve this challenge so that I get the correct memory location from the Assets directory is returned?
B4X:
Log("DirAssets: " & File.DirAssets)
Log("DirDefaultExternal: " & File.DirDefaultExternal)
Log("DirRootExternal: " & File.DirRootExternal)
Log("DirInternal: " & File.DirInternal)
Log("DirInternalCache: " & File.DirInternalCache)
The result is:
Logger connected to: samsung SM-J730F
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
DirAssets: AssetsDir
DirDefaultExternal: /storage/emulated/0/Android/data/b4a.example/files
DirRootExternal: /storage/emulated/0
DirInternal: /data/user/0/b4a.example/files
DirInternalCache: /data/user/0/b4a.example/cache
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Service (starter) Destroy (ignored)**
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
How can I solve this challenge so that I get the correct memory location from the Assets directory is returned?