List all the folder and files of Dropbox using Dropbox API

后端 未结 3 1025
梦谈多话
梦谈多话 2020-12-31 06:32

Am looking for the tutorial to display all the files and folder in a listview..but I didn\'t get anything..Does anyone here know that how can I show all the folder and files

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 07:14

    Try this code to list the files.....I don't know more about Dropbox, try it

     Entry contact = mDBApi.metadata("/", 0, null, true, null);
    
        List CFolder = contact.contents;
        for (Entry entry : CFolder) {
        Log.i("DbExampleLog", "Filename: " + entry.fileName());}
    

提交回复
热议问题