private void handleFakeOpenWithIntent(Intent intent) {
        if (intent.getAction() == DbxOfficialAppConnector.ACTION_DBXC_EDIT ||
                intent.getAction() == DbxOfficialAppConnector.ACTION_DBXC_VIEW) {
            String path = intent.getStringExtra(DbxOfficialAppConnector.EXTRA_DROPBOX_PATH);
            String uid = intent.getStringExtra(DbxOfficialAppConnector.EXTRA_DROPBOX_UID);
            boolean read_only = intent.getBooleanExtra(DbxOfficialAppConnector.EXTRA_DROPBOX_READ_ONLY, false);
            String session_id = intent.getStringExtra(DbxOfficialAppConnector.EXTRA_DROPBOX_SESSION_ID);
            showToast(path + uid + read_only + session_id);
        }
    }
private void handleFakeOpenWithIntent ( Intent intent ) { if ( intent . getAction ( ) == DbxOfficialAppConnector . ACTION_DBXC_EDIT || intent . getAction ( ) == DbxOfficialAppConnector . ACTION_DBXC_VIEW ) { String path = intent . getStringExtra ( DbxOfficialAppConnector . EXTRA_DROPBOX_PATH ) ; String uid = intent . getStringExtra ( DbxOfficialAppConnector . EXTRA_DROPBOX_UID ) ; boolean read_only = intent . getBooleanExtra ( DbxOfficialAppConnector . EXTRA_DROPBOX_READ_ONLY , false ) ; String session_id = intent . getStringExtra ( DbxOfficialAppConnector . EXTRA_DROPBOX_SESSION_ID ) ; showToast ( path + uid + read_only + session_id ) ; } }
/* Because it's just a fake intent, we just print it in Toast and do nothing here. As third
party app you should take the intent from Dropbox official app and potentially go through
the auth flow. Finally handle that file sent with this intent.