The first time I execute this command
I get this error and the application crashes. However the folder is created in my Dropbox.
Once the folder is created executing that same line of code does not cause the app to crash.
What am I doing wrong? Can someone explain what signature it is referring to.
Also placing a Try/Catch around the line does not catch the error so I could ignore it. Therefore I am not able to stop the app from crashing when I create a new folder.
Here is the dbxFiles_CreateFolder routine if that helps. I am guessing that the parameter list is some how wrong but I think I got it from the example code. Perhaps something obvious I am missing.
B4X:
dbxFiles.createFolder("/New Folder 1")
I get this error and the application crashes. However the folder is created in my Dropbox.
B4X:
java.lang.Exception: Sub dbxfiles_createfolder signature does not match expected signature.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:188)
at anywheresoftware.b4a.BA$2.run(BA.java:360)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
What am I doing wrong? Can someone explain what signature it is referring to.
Also placing a Try/Catch around the line does not catch the error so I could ignore it. Therefore I am not able to stop the app from crashing when I create a new folder.
Here is the dbxFiles_CreateFolder routine if that helps. I am guessing that the parameter list is some how wrong but I think I got it from the example code. Perhaps something obvious I am missing.
B4X:
Sub dbxFiles_CreateFolder(success As Boolean, meta As FolderMetadata, error As String)
Log("==> dbxFiles_CreateFolder")
' Log($"dbxFiles_CreateFolder(${success}, ${error})"$)
End Sub
Last edited: