We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
MatthieuDelisle
5 years agoNew member | Level 2
Crash when linking account on Dropbox JAVA API
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: main
Process: com.example.testdropbox, PID: 24166
android.os.NetworkOnMainThreadException
edit : I added the code into a Async task, and it's fixed
No RepliesBe the first to reply
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!