Olivier Zeegers Active Member Licensed User Oct 10, 2018 #1 Hello, How can I verify that the initialization of a randomaccessfile went OK ? Code: Copy Dim OutFile As RandomAccessFile If File.Exists(File.DirDefaultExternal,"test.wav") Then File.Delete(File.DirDefaultExternal,"test.wav") End If 'Initialize the output file OutFile.Initialize2(File.DirDefaultExternal,"test.wav",False,True) does OutFile.Initialize2 give a result ?
Hello, How can I verify that the initialization of a randomaccessfile went OK ? Code: Copy Dim OutFile As RandomAccessFile If File.Exists(File.DirDefaultExternal,"test.wav") Then File.Delete(File.DirDefaultExternal,"test.wav") End If 'Initialize the output file OutFile.Initialize2(File.DirDefaultExternal,"test.wav",False,True) does OutFile.Initialize2 give a result ?
Erel B4X founder Staff member Licensed User Longtime User Oct 11, 2018 #2 Never use File.DirDefaultExternal. Runtime Permissions (Android 6.0+ Permissions) If it doesn't throw an error then it was initialized properly. Upvote 0
Never use File.DirDefaultExternal. Runtime Permissions (Android 6.0+ Permissions) If it doesn't throw an error then it was initialized properly.