There is a difference between B4A and B4J with File.ListFiles(File.DirAssets).
This code works in B4A but not in B4J:
For Each FileName As String In File.ListFiles(File.DirAssets)
This code works in B4J but not in B4A:
For Each FileName As String In File.ListFiles("../files/")
For cross-platform projects it would be interesting that the same codes works in all platforms.
I would prefer: For Each FileName As String In File.ListFiles(File.DirAssets)
I have not checked B4i.
This code works in B4A but not in B4J:
For Each FileName As String In File.ListFiles(File.DirAssets)
This code works in B4J but not in B4A:
For Each FileName As String In File.ListFiles("../files/")
For cross-platform projects it would be interesting that the same codes works in all platforms.
I would prefer: For Each FileName As String In File.ListFiles(File.DirAssets)
I have not checked B4i.