Hi Don Manfred,
I've finally come back to updating my dropbox code after the java 7.0 update as the deadline looms. Got my head around the auth issues finally and go it mostly working but I'm having an issue when deleting files now.
When i send a .delete request, my app crashes with the error:
java.lang.IllegalArgumentException: method cs.FormFillPlus.main._dbxfiles_delete argument 2 has type de.donmanfred.dbxv2.files.FileMetadataWrapper, got com.dropbox.core.v2.files.FileMetadata
The file is deleted but I don't seem to be able to trap it to stop the app crashing.
Am I doing something incorrect or is there an issue in the wrapper?
Many thanks
Gavin Schofield
I've finally come back to updating my dropbox code after the java 7.0 update as the deadline looms. Got my head around the auth issues finally and go it mostly working but I'm having an issue when deleting files now.
When i send a .delete request, my app crashes with the error:
java.lang.IllegalArgumentException: method cs.FormFillPlus.main._dbxfiles_delete argument 2 has type de.donmanfred.dbxv2.files.FileMetadataWrapper, got com.dropbox.core.v2.files.FileMetadata
B4X:
dbxFiles.delete("/Certificates/" & dbFolder & "/" & dbFileName)
B4X:
Sub dbxFiles_Delete (success As Boolean, meta As FileMetadata, error As String)
'error 'java.lang.Exception: Sub dbxfiles_delete signature does not match expected signature.' if file is successfully deleted
If success Then
dbxFiles.upload(savePath & "/Export/" & localFolder, dbFileName, "/Certificates/" & dbFolder & "/" & dbFileName, False, False)
ToastMessageShow("Deleted", False)
Else
ToastMessageShow("Delete Failed", False)
Log(error)
End If
End Sub
The file is deleted but I don't seem to be able to trap it to stop the app crashing.
Am I doing something incorrect or is there an issue in the wrapper?
Many thanks
Gavin Schofield