Android Tutorial Android Dropbox / OAuth Tutorial

TommyE28

Member
Licensed User
Longtime User
Try to bild a wraper

@Erel,
I will try to build a dropbox-wraper. But here is the problem the librarys from the Dropbox-API was not found. Can you please take a look on my sources and the log.

Everything I have written so far is only the understanding of the wrapper for me to work and not in reality the implementation of future Dropbox API wrapper!

Sorry, my knowledge of Java is not very good.

Thank you for your efforts.
 

luke2012

Well-Known Member
Licensed User
Longtime User
Download specific file in app directory

Before of all, my compliments for this very interesting sample!

I understand that this sample works for upload files, but if I want to download a file from a defined dropbox direcory into a defined android app direcory which code can I use?

Thanks!
 

Tegwin

Member
Licensed User
Longtime User
Not working

Hello I have tried this but I always get the error messaage below when trying to run the program.. I copied the 2 OAuth files to the library as requested but I get the error all the time.. Any idea why ?

:sign0104:

Compiling code. Error
Error parsing program.
Error description: Unknown type: filedialog
Are you missing a library reference?
Occurred on line: 24
Dim FileDialog As FileDialog
 

Tegwin

Member
Licensed User
Longtime User
I have tried this example and I am getting the following error

Error: Status Code =401. You are using an older version of the Dropbox API with a newer API Key. Please use the latest version.

Any ideas how I get the latest version of this.
:sign0104:
 

Tegwin

Member
Licensed User
Longtime User
When I login I get an error saying

This app does not have permission for this operation..I see that there are some other people with the same error that never really seemed to be resolved.

Any ideas ?
 

Tegwin

Member
Licensed User
Longtime User
I have just checked my APP keys and they are right.. Just after I login I get the error.
 

thedesolatesoul

Expert
Licensed User
Longtime User
When I login I get an error saying

This app does not have permission for this operation..I see that there are some other people with the same error that never really seemed to be resolved.

Any ideas ?
I just told you the two things you need to change it to make it work.
I have been using the new API for more than 6 months now with no issues.
The permissions issue is because in your Dropbox app, it is only configured for sandbox (folder access) rather than full dropbox access.
 

thedesolatesoul

Expert
Licensed User
Longtime User

Xardoz

Member
Licensed User
Longtime User
I am new to B4A, and have installed the Dropbox demo project
Got my information from Dropbox
Put in my keys

But when I run it, When I attempt to log in, i get:

Line 34 is the End Sub of this proceedure
B4X:
Sub Service_Create
    If TempFolder = "" Then TempFolder = File.DirInternalCache
    If OAuth.IsInitialized = False Then
        OAuth.Initialize(Main.developerKey, Main.developerSecret)
    End If
    If hcIsInitialized = False Then
        hc.Initialize("hc")
        hcIsInitialized = True
    End If
End Sub

You assistance is appreciated.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…