Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Craig M.21
11 years agoNew member | Level 2
Dropbox should respond to Android Intent.ACTION_SEND
My android app uses the code below to allow users to back up an important file. A number of applications, including Google Drive, appear as suitable services to handle the file, but Dropbox does not ...
ricardo s.18
10 years agoNew member | Level 1
Hello, i have a problem with my app. When i try to share a .zip file with dropbox it doesn´t work. This is my code that should allow to share with gmail, dropbox, gdrive, etc.:
This code works for gmail and gdrive but it doesn´t work for dropbox.Can you help me?, what is the problem?
Intent emailIntent = new Intent(Intent.ACTION_SEND);
String aEmailList[] = { " };
String aEmailCCList[] = { "};
String aEmailBCCList[] = { " };
emailIntent.putExtra(Intent.EXTRA_EMAIL, aEmailList);
emailIntent.putExtra(Intent.EXTRA_CC, aEmailCCList);
emailIntent.putExtra(Intent.EXTRA_BCC, aEmailBCCList);
boolean plus = Tienda.personalizarEmailAdquirido(actividad);
emailIntent.putExtra(Intent.EXTRA_SUBJECT,plus?
PersonalizacionTextos.getTextoEmail(actividad,PersonalizacionTextos.ASUNTO_BACKUP):
actividad.getString(R.string.txsubjectbackup));
emailIntent.putExtra(Intent.EXTRA_TEXT, plus?
PersonalizacionTextos.getTextoEmail(actividad,PersonalizacionTextos.MENS_BACKUP):
actividad.getString(R.string.txbodybackup));
ExternalStorageState eSs = new ExternalStorageState(actividad.getString(R.string.app_directoryname));
if(eSs.isPresentString(eSs.getPathWithoutCreate("backup"))){
try {
File directorioToFind = new File(eSs.getPathWithoutCreate("backup"));
String ficheroZipeado = eSs.getPath("backup.zip","zip");
NZipCompresser nZc = new NZipCompresser(directorioToFind,ficheroZipeado);
nZc.compress();
String uri = "file://" + ficheroZipeado;
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse (uri));
emailIntent.setType("application/zip");
} catch (Exception e) {
NotificationSender nM = new NotificationSender(actividad,"Error en zip","Error en zip,"+e.getMessage());
nM.sendNotification();
}
actividad.startActivity(Intent.createChooser(emailIntent,"));
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!