dropbox-api

Dropbox could not dismiss modal view controller

痞子三分冷 提交于 2019-12-02 08:57:42
I have integrated dropbox in my application,After entering the username and password,when i try to dismiss the dropbox view controller it is not dismissing. i am using xcode4.2 with ios sdk5.Please help me to fix this issue. in ios5 you have to use presentingViewController instead of parentViewController. e.g.: if (self.parentViewController) { [self.parentViewController dismissModalViewControllerAnimated:YES]; } else if ([self respondsToSelector:@selector(presentingViewController)] && self.presentingViewController) { [self.presentingViewController dismissModalViewControllerAnimated:YES]; } 来源:

Android Make a new Async task have priority over others in background or Dropbox Core API issue

本小妞迷上赌 提交于 2019-12-02 08:41:42
问题 I am loading multiple photos from Dropbox using the Core API in Android and when making requests they are serialized. I am getting the thumbnails to show in a grid view and when the user clicks on one of them it goes to another activity it fetches the full res version from the server. It does this fine, but the high res version only starts to be downloaded when all the others async tasks fetching the thumbnails are finished. So what I want to know is, is this a limitation of the Dropbox Core

Getting SSLHandshakeException when using Dropbox Java SDK for API v2

六月ゝ 毕业季﹏ 提交于 2019-12-02 08:24:51
In a XPages application I want to make use of the Dropbox Java SDK (2.1.2) for API v2 to get information about my Dropbox account. The following code is used to retrieve the corresponding account object: String atoken = "****"; DbxRequestConfig rc = new DbxRequestConfig("****"); DbxClientV2 client = new DbxClientV2(rc,atoken); DbxUserUsersRequests users = client.users(); FullAccount acc = users.getCurrentAccount(); // Exception raised here The last line raises the following exception: com.dropbox.core.NetworkIOException: No appropriate protocol at com.dropbox.core.DbxRequestUtil.startPostRaw

How to display Dropbox files in a listview in android?

有些话、适合烂在心里 提交于 2019-12-02 08:09:27
问题 I've been browsing answers on here for a while and have employed most of the answers in my code but it still doesn't seem to work. I just want to display a listview of the content in a dropbox account and also give the user an option to download a file/folder. My MainActivity used to crash right after opening it, surrounding my onPostExecute content with a try/catch statement handling NullPointerException solved the crashing. But the app still fails to display the contents in Dropbox. At the

Save image to dropbox with data from canvas

拜拜、爱过 提交于 2019-12-02 07:54:39
I'm trying to write canvas data as an image (png) to my dropbox. I manage to get the data from canvas and to save a file to dropbox, but the file is not an image file it seams. According to the documentation the image data should be converted to a arrayBuffer. That I'm doing using a function found here on Stackoverflow but something doesn't seem to work. Does anyone know what I'm doing wrong? function _str2ab(str) { var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char var bufView = new Uint16Array(buf); for (var i=0, strLen=str.length; i<strLen; i++) { bufView[i] = str.charCodeAt

Prompt user to save on download from Dropbox

我的梦境 提交于 2019-12-02 07:11:01
I want to have a link to download a file from Dropbox that prompts the user instead of displaying the file in the browser. This probably requires setting a content-disposition header to 'attachment'. I'm currently using the dropbox media URL as described here: https://www.dropbox.com/developers/reference/api#media It seems my alternative might be to create a proxy, but I'd obviously like to avoid that. Is there a way to get this behavior from a direct Dropbox link? Found the answer myself. As documented here: https://www.dropbox.com/help/201 just add dl=1 to the URL. 来源: https://stackoverflow

Android Make a new Async task have priority over others in background or Dropbox Core API issue

戏子无情 提交于 2019-12-02 05:19:58
I am loading multiple photos from Dropbox using the Core API in Android and when making requests they are serialized. I am getting the thumbnails to show in a grid view and when the user clicks on one of them it goes to another activity it fetches the full res version from the server. It does this fine, but the high res version only starts to be downloaded when all the others async tasks fetching the thumbnails are finished. So what I want to know is, is this a limitation of the Dropbox Core API? Or is there a way to make the high res async task have priority over others so it is immediately

How to display Dropbox files in a listview in android?

风流意气都作罢 提交于 2019-12-02 03:56:42
I've been browsing answers on here for a while and have employed most of the answers in my code but it still doesn't seem to work. I just want to display a listview of the content in a dropbox account and also give the user an option to download a file/folder. My MainActivity used to crash right after opening it, surrounding my onPostExecute content with a try/catch statement handling NullPointerException solved the crashing. But the app still fails to display the contents in Dropbox. At the most basic stage with just a MainActivity and a DLFiles (AsyncTask) class, how do I make this work? I

Get Metadata from Dropbox Link Without Auth

倖福魔咒の 提交于 2019-12-02 03:51:37
问题 I want to check for a version changed/get metadata of a text-file with a shared link on dropbox. I will not be using dropbox api as it makes users use their own accounts. I want them to link to my account and I cannot do that manually since I might change my password later. so: no auth token, just get metadata from shared link of dropbox so that I can check for version changes and if the version has changed download the contents of the new file. also: I'm open to other suggestions to make

java.lang.NoClassDefFoundError: com.dropbox.sync.android.DbxAccountManager

◇◆丶佛笑我妖孽 提交于 2019-12-02 03:25:52
问题 Please this will be not DUPLICATE question Don't know but I have already put .jar in libs folder and also done following process And also I have checked this I'm getting a java.lang.classnotfoundexception: com.mysql.jdbc.Driver I have done several projects but in first time I am getting with this dropbox sample Project Lotcat is 10-14 13:01:00.580: W/dalvikvm(2902): threadid=1: thread exiting with uncaught exception (group=0x430d5140) 10-14 13:01:00.580: E/AndroidRuntime(2902): FATAL