Android Question dropbox class module error in b4a 8.80

juanM1

Member
Licensed User
Hi
I have updated b4a to version 8.8 since 7.30 and now in the dropbox class module, I get the following error

dropbox class module
B4X:
Sub Class_Globals
    Private mAccessToken As String   
    Private mApiV1url As String = "https://api.dropbox.com/1/"
    Private mApiV1notifyurl As String = "https://api-notify.dropbox.com/1/"
    Private mApiV1urlcontent As String = "https://api-content.dropbox.com/1/"
    Private mApiV2url As String = "https://api.dropboxapi.com/2/"
    Private mApiV2urlContent As String = "https://content.dropboxapi.com/2/"
                                                                               
    Private mCallback As Object
    Private mEvent As String
    Private mDebug As Boolean
    Private mChunkedUploadPos As Int
 Private mUploadlist As List
    Private mVersion As String = "0.92ß"
end
Line error
B4X:
private Sub handleUploadSessionInit(Job As HttpJob, res As String)
.........
.........
........         
           Dim buffer(session.Get("packetsize")) As Byte
error
upload_2019-3-23_8-23-29.png


Tranks
 

juanM1

Member
Licensed User
Hi Don manfred

thanks for answering, because as I see it is a class of yours.

B4X:
public Sub logVersionInfo()
    LogColor("**********************",Colors.Blue)
    LogColor("DrobBox Class V2",Colors.Blue)
    LogColor("implementing DbxAPI",Colors.Blue)
    LogColor("-> API V2-beta2 <-",Colors.Blue)
    LogColor("Class-Version: "&mVersion,Colors.Blue)
    LogColor("**********************",Colors.Blue)
    LogColor("Author: DonManfred",Colors.Blue)
    LogColor("Realname: Manfred Ssykor",Colors.Blue)
    LogColor("eMail: msy1912@gmail.com",Colors.Blue)
    LogColor("**********************",Colors.Blue)
End Sub
I have updated to java 8 202 and follow the error.
I am testing with the app that came to test DBXV2Test.b4a

upload_2019-3-23_10-11-29.png


Thanks
 

juanM1

Member
Licensed User
"Please do NOT post such big images!
Please post the error inside the logwindow as TEXT. No need for an image at all."

OK.

You are still missing posting all relevant code.

I'm sorry my English is bad, I do not know what you mean by "Revelant code".
I'm trying with your DropboxV2OAuth demo

Thantks
 

DonManfred

Expert
Licensed User
I'm trying with your DropboxV2OAuth demo
You did noted the Hint right at the beginning of the thread?

Update April 2017:
Google has changed the ability to use a Webview to get an OAuth-Token. Due to this change it no longer works to get an OAuth-Token using a Webview.
This library is not useable anymore except if you use the Lib only using YOUR token which is hardcoded in your app. This will work.
But if you need to get Access to a Users Dropbox then you can´t use this lib anymore. I suggest to switch to my Java-Wrap for the Drobox Api V2. Here you are able to get an OAuth-Token as this lib does not depend on a Webview.
 
Top