B4J Question version 3.0 Beta 7. (SOLVED)

BeneBarros

Active Member
Licensed User
an error is occurring in version 3.0 Beta 7.
the system does not find an image, but she's in the folder.
see attached image

in version 2.80 runs normally
 

Attachments

BeneBarros

Active Member
Licensed User
Please open the jar file with 7zip or a similar tool and check whether the file is in the Files folder.
The image exists in jar file and it is used in all forms of the same project without returning error.
the image is part of the header of all forms and as few in this subroutine that generates the error.
B4X:
    Dim ImageFiles() As String=Array As String("CkFalse.png", "CkTrue.png", "logoinn.png", "TxtSepar.png")
    CopyAssetsToTemp(ImageFiles)   
...
...
Private Sub CopyAssetsToTemp(Filenames() As String)
    Dim i As Int
    For i=0 To Filenames.Length-1
        If Not(File.Exists(tpPath, Filenames(i))) Then
            File.Copy(File.DirAssets, Filenames(i), tpPath, Filenames(i))
        End If
    Next
End sub
Thanks for listening
 

Attachments

BeneBarros

Active Member
Licensed User
The name of the file in the jar is logoInn.png not logoinn.png.
in the "Files" folder was correct, and when compiling put wrong in jar file.

the mistake was in fxml files

already corrected and running satisfactorily
Thank you for your help ...
 
Top