I try to move a file to another directory, but have problems to remove the copied file, the Java platform has it open after the copy, how do I solve this problem???
B4X:
'WebSocket class
public Sub MoveFile (sSourceDir As String, sDestDir As String, sFile As String) As Boolean
Dim bOK As Boolean
Try
File.Copy(sSourceDir,sFile, sDestDir, sFile)
Catch
Return False
End Try
bOK = File.Delete( sSourceDir, sFile)
Return bOK
End Sub