Android Question DropboxV2 Java 7.0 Deleting files issue

Gavins

Member
Licensed User
Longtime User
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

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
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…