SDK documentation for Dropbox android

I did some research, and for a living I can not find documentation on how to use the Android SDK. I authenticated the user, but now I can’t figure out how to get the metadata (file records) in the folder. I looked at web docs, but the arguments in java are wrapped, flipped, and then some.

In objective-c, the methods go straight and I understand what is going on. Should I port code from objective-c to java?

+5
source share
3 answers

As far as I can tell as of September 20, 2011, Dropbox still hasn't delivered the Android SDK documentation. Here are some workarounds:

[ ] Dropbox. , . , , !

+2
0

SDK (DropboxSample) :

DropboxSample.java :

public void displayFiles(DropboxAPI.Account account) {
        if (account != null) {
            DropboxAPI.Entry dbe = api.metadata("dropbox", "/Public", 10000, null, true);
            List<Entry> contents = dbe.contents;
            if (contents != null) {
            for (Entry ent:contents) {
                Toast.makeText(this, ent.fileName(), Toast.LENGTH_SHORT).show();
            }
            }
    }
    }

LoginAsyncTask.java :

mDropboxSample.displayFiles(mAccount);

below mDropboxSample.displayAccountInfo (mAccount);

0
source

All Articles