We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Craig M.21's avatar
Craig M.21
New member | Level 2
10 years ago

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 appear, even though it offers the same functionality as Google Drive. Could you please change Dropbox so that it appears and my users can access it in this way?

File F = new File(sdPath);

if(F.exists()){  

    Uri U = Uri.fromFile(F);
    Intent i = new Intent(Intent.ACTION_SEND);
    i.setType("file/*");
    i.putExtra(Intent.EXTRA_STREAM, U);
    startActivity(Intent.createChooser(i,"Email/Upload '" + filename + "'"));
}  


  • ricardo s.18's avatar
    ricardo s.18
    New 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,"));
  • Bostek's avatar
    Bostek
    New member | Level 1

    I have the same problem... ACTION_SEND doesn't work anymore. Any suggestions?

  • Gil G.'s avatar
    Gil G.
    New member | Level 1

    Is the fix out yet? We are sharing image/png together with an extra text that contains a link to our app. I'd expect Dropbox to ignore the text and upload the image..

  • Jonathan M.32's avatar
    Jonathan M.32
    New member | Level 1

    Hey, same deal here with our app FlipaClip on Android. I'm not sure who is here DropBox dev but I assume Antonio? If that's the case version 10.2? I see on GooglePlay 8.2.4.

    We are using:

    public static void share (Context context, String subject, String message, String title, Uri data, String mime)
    {
    Intent intent = new Intent();
    intent.setAction(Intent.ACTION_SEND);

    // Add data to the intent, the receiving app will decide what to do with it.
    if (null != subject)
    {
    intent.putExtra(Intent.EXTRA_SUBJECT, subject);
    }

    if (null != message)
    {
    intent.putExtra(Intent.EXTRA_TEXT, message);
    }

    intent.putExtra(Intent.EXTRA_TITLE, title);
    intent.setType(mime);
    intent.putExtra(Intent.EXTRA_STREAM, data);

    Intent newShareIntent = Intent.createChooser(intent, "Share with");
    newShareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    context.startActivity(newShareIntent);
    }