We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
davidv7
8 years agoNew member | Level 2
Why does the official Dropbox Android SDK not contain an intent?
I've recently decided to integrate Dropbox into my simple app. I followed the github official example and the tutorial Dropbox posted for Android.
However, after expanding my horizons I realized this works just as well, without an app key and other things:
Intent intent = new Intent(Intent.ACTION_SEND);intent.setType("text/xml");intent.setPackage("com.dropbox.android");
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.putExtra(Intent.EXTRA_STREAM, FileProvider.getUriForFile(getContext(), "david.projectclouds.MainActivity", file));
getContext().startActivity(Intent.createChooser(intent, "title"));
Now I want to know what are the pros of using your implementation instead of simple intents? I'm pretty new to Android dev so go easy on me.
I also am pretty sure the decision was not random.
- Greg-DBDropbox Staff
The Dropbox Android SDK (like the rest of the SDKs for other platforms) is built on the Dropbox API HTTP endpoints, meaning that it enables apps to communicate directly with the Dropbox servers to integrate with Dropbox.
The official Dropbox Android app itself does offer some intents, unrelated the above API.
Using intents means you don't need to register for an app key, but it also requires that the official Dropbox Android app be installed. The Dropbox API also offers a wider variety of functionality than the official app's intents. You can use whichever you want though.
- davidv7New member | Level 2Thought so,just wanted to be sure. Since my app only requires upload and download using intents was the way to go.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!