Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!

Forum Discussion

drewbiedu's avatar
drewbiedu
Explorer | Level 4
7 years ago
Solved

Read file contents

I'm sure this is answered somewhere else, but clearly I'm not Googling the right thing. I'm working on an android app (java) and I'm trying to read the contents of a file without downloading it (needs to read every time the app opens). I was able to find plenty of examples for API v1, but nothing for v2. I have the basics, but that's about it:

DbxRequestConfig config = DbxRequestConfig.newBuilder("dropbox/my_folder").build();
DbxClientV2 client = new DbxClientV2(config, context.getResources().getString(R.string.access_token));