Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi, I'm trying to build a JAVA app on Android studio, and I want to upload a file to Dropbox.
However, when linking my account, it crashes.
I have put my right token.
The error happen on this line :
FullAccount account = client.users().getCurrentAccount();
I have followed the exact same official tutorial on github, so I don't know why it crashes.
Here is the error log :
E/AndroidRuntime: FATAL EXCEPTION: mainProcess: com.example.testdropbox, PID: 24166android.os.NetworkOnMainThreadException
edit : I added the code into a Async task, and it's fixed
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!