In this post
b4x.com
have a initilize POR B4J,
but in .bas the code:
is diferent between Android and Java.
question?
how pass the ClienteSecret code in Android.
[solved]how use OAuth2 class for dropbox ??
how use OAuth2 class for dropbox ?? for upload and download file from dropbox i test any other dropbox libs for b4j but without result also i want to any user could upload to his account form this app https://www.b4x.com/android/forum/threads/class-b4x-google-oauth2.79426/#content
have a initilize POR B4J,
B4X:
dpx.Initialize(Me, "dpx", Appkey, "account_info.read account_info.write contacts.write file_requests.read file_requests.write files.content.read files.content.write files.metadata.read files.metadata.write sharing.read sharing.write", AppSecret, File.DirData("Dropbox"))
but in .bas the code:
B4X:
#If B4J
Public Sub Initialize (Target As Object, EventName As String, ClientId As String, scope As String, ClientSecret As String, DataFolder As String)
#Else
Public Sub Initialize (Target As Object, EventName As String, ClientId As String, Scope As String)
#End If
evModule = Target
evName = EventName
mClientId = ClientId
mScope = Scope
#if B4A
packageName = Application.PackageName
TokenFolder = File.DirInternal
#Else If B4i
TokenFolder = File.DirLibrary
packageName = GetPackageName
#Else If B4J
TokenFolder = DataFolder
mClientSecret = ClientSecret
#End If
If File.Exists(TokenFolder, TokenFile) Then
Dim raf As RandomAccessFile
raf.Initialize(TokenFolder, TokenFile, True)
ti = raf.ReadB4XObject(raf.CurrentPosition)
raf.Close
End If
End Sub
is diferent between Android and Java.
question?
how pass the ClienteSecret code in Android.