You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
DeanBlakely
8 years agoExplorer | Level 4
my dropbox chooser stopped working
My Dropbox chooser no longer works in my android app and nothing has changed. I was retesting it recently and it returns the error saying "Sorry and error occurred. Please try again later."
below I have pasted relevant code that has been working for around a year and also a printout from the error log having to do with GetLinkAsyncTask.
Any Idea why this stopped working?
private static final String APP_KEY = "21fxa7qsjb9xpt6"; //app key for dropbox private static final int DBX_CHOOSER_REQUEST = 256; // arbitrarily choosing 256 private DbxChooser mChooser; public void btnDropbox_Clicked(View v) { vibratePhone(50); DbxChooser.ResultType resultType; resultType = DbxChooser.ResultType.PREVIEW_LINK; DebugLog.debugLog("launching Dropbox Chooser ", false); GlobalStuff.outToChooser = true; mChooser.forResultType(resultType).launch(this, DBX_CHOOSER_REQUEST); } public void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == DBX_CHOOSER_REQUEST ) { DebugLog.debugLog("It was for dropbox", false); GlobalStuff.outToChooser = false; if (resultCode == Activity.RESULT_OK) { DbxChooser.Result result = new DbxChooser.Result(data); DebugLog.debugLog("Link to selected file: " + result.getLink(), false); @SuppressWarnings("deprecation") android.text.ClipboardManager clipboard = (android.text.ClipboardManager) GlobalStuff.GCT.getSystemService(GlobalStuff.GCT.CLIPBOARD_SERVICE); Uri uri = result.getLink(); String str = uri.toString(); clipboard.setText(str); } else { //failed or was cancelled by user } } //for some poorly documented reason we need to call mHelper.handleActivityResult //to get our mPurchaseFinishedListener to execute so that we can consume purchases //and provision product . . . if (requestCode == RC_REQUEST) { DebugLog.debugLog("It was for in-app billing", false); if (mHelper == null) { DebugLog.debugLog("mHellper was null ", false); return; } if (mHelper.handleActivityResult(requestCode, resultCode, data)) { DebugLog.debugLog("Got positive back from handleActivityResult call", false); } } }
log error is as follows:
01-16 16:57:04.125 2825-2825/? W/SplitWindow: update focus... 01-16 16:57:04.144 1298-1386/? I/WindowManager: Losing delayed focus: Window{adbe0f7 u0 com.dropbox.android/com.dropbox.android.activity.DropboxChooserActivity} 01-16 16:57:04.152 2825-2825/? W/SplitWindow: update focus... 01-16 16:57:04.310 2825-16239/? I/com.dropbox.android.activity.gf: Error in GetLinkAsyncTask j: 500 Internal Server Error (The server has either erred or is incapable of performing the requested operation.) at com.dropbox.client2.ak.a(panda.py:566) at com.dropbox.client2.ak.b(panda.py:645) at com.dropbox.client2.ak.a(panda.py:77) at com.dropbox.client2.am.a(panda.py:148) at com.dropbox.client2.ak.b(panda.py:386) at com.dropbox.client2.ak.a(panda.py:279) at com.dropbox.internalclient.ai.a(panda.py:39) at com.dropbox.internalclient.ba.c(panda.py:2237) at com.dropbox.internalclient.ba.a(panda.py:2397) at com.dropbox.android.activity.gf.a(panda.py:320) at com.dropbox.android.activity.gf.b(panda.py:236) at dbxyzptlk.db2820200.bg.s.a(panda.py:55) at dbxyzptlk.db2820200.bg.s.a(panda.py:30) at dbxyzptlk.db2820200.en.a.doInBackground(panda.py:113) at android.os.AsyncTask$2.call(AsyncTask.java:295) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818) 01-16 16:57:04.341 3533-3533/? I/[SystemUI]NavigationThemeResource: notify navigation bar color(0xff000000)
- Greg-DBDropbox StaffThanks for the report! Is this only occurring for you when you select files in the Public folder? If so, that's a known issue we're working on.
- Greg-DBDropbox StaffThe issue with choosing files in the Public folder should be fixed now. Please let us know if you're still seeing any issues.
- DeanBlakelyExplorer | Level 4
Yes. It works now. Glad to hear it was on your end.
Thanks
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf 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 or Facebook.
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!