cancel
Showing results for 
Search instead for 
Did you mean: 

Example code for download/upload file in Android

427 Views
3 Comments
0 Kudos
Highlighted
Level 2

Example code for download/upload file in Android

Someone could share a functional code to download or upload a file on Android?

 

Thank you 

3 Replies
Dropboxer

Re: Example code for download/upload file in Android

If you're using the Dropbox API v2 Java SDK on Android, you can find a sample for downloading a file here:

https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/a...

And for uploading a file here:

https://github.com/dropbox/dropbox-sdk-java/blob/7ecc15cf0f51d6ae2ba5cdb334aac2c2f3474b87/examples/a...
Level 3

Re: Example code for download/upload file in Android

Hi,

I am trying to migrate from v1 to v2. No luck sofar. And I do not get the example code to work. 

I tried the android axample but it fails on gradle build. So no way tot test pieces of code.

 

Trying the turorial (in androidstudio):

https://github.com/dropbox/dropbox-sdk-java#dropbox-for-java-tutorial

I run into errors as well. Here:

FullAccount account = client.users().getCurrentAccount();

 

I am desperate! Does anyone have a working Simple example to connect to dropbox and upload a file with android studio?

 

thanks a lot!!

 

 

 

Dropboxer

Re: Example code for download/upload file in Android

@SnowJeb The example should work. Can you share the specific errors you're getting so we can help? Thanks in advance!