We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
pfcopeika
8 years agoExplorer | Level 3
Can't link an account
I'm using Android studio and have some troubles. I followed this tutorial: https://github.com/dropbox/dropbox-sdk-java#dropbox-for-java-tutorial But in the beginning I've got problem: private s...
Greg-DB
Dropbox Community Moderator
8 years agoCan you elaborate on what exactly isn't working? E.g., please include the full text of the error or output, or describe any unexpected behavior. Thanks in advance!
- pfcopeika8 years agoExplorer | Level 3
Well, on the third line program just stop. Here is some debug information from Logcat before it crashed:
Long monitor contention event with owner method=void java.lang.ref.ReferenceQueue.enqueue(java.lang.ref.Reference) from ReferenceQueue.java:4294967295 waiters=1 for 327ms
I/art: Background sticky concurrent mark sweep GC freed 44(26KB) AllocSpace objects, 1(16KB) LOS objects, 17% free, 1652KB/2000KB, paused 143.172ms total 1.063s
W/art: Suspending all threads took: 28.923ms
W/art: Verification of com.dropbox.core.v2.files.CreateFolderResult com.dropbox.core.v2.files.DbxUserFilesRequests.createFolderV2(java.lang.String) took 105.006ms
I/art: Background partial concurrent mark sweep GC freed 2202(246KB) AllocSpace objects, 1(16KB) LOS objects, 39% free, 1676KB/2MB, paused 118.393ms total 731.239ms
I/art: WaitForGcToComplete blocked for 36.960ms for cause HeapTrim
W/art: Suspending all threads took: 28.650ms
I/art: Background sticky concurrent mark sweep GC freed 5018(480KB) AllocSpace objects, 4(96KB) LOS objects, 15% free, 2MB/2MB, paused 97.022ms total 899.077ms
I/art: WaitForGcToComplete blocked for 27.208ms for cause Background
I/art: Background sticky concurrent mark sweep GC freed 4019(232KB) AllocSpace objects, 1(28KB) LOS objects, 11% free, 2MB/2MB, paused 42.579ms total 1.009sBesides, after second line in debug i saw that
client->_client->userId = nullclient->_client->pathRoot = null
- Greg-DB8 years ago
Dropbox Community Moderator
Is that the entirety of the output you get? If your app crashed, there should be some sort of stack trace. (Can you double check you're connected to the right device and don't have any filters enabled on Logcat?)
I just tried the code you supplied and I wasn't able to reproduce the crash.
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!