+ if (isSharedSupported()) {
+ // Create the Share
+ CreateShareOperation createShare = new CreateShareOperation(file.getRemotePath(), ShareType.PUBLIC_LINK, "", false, "", 1);
+ createShare.execute(getStorageManager(), this, this, mHandler, this);
+
+ // TODO
+ // Get the link --> when the operation is finished
+
+ } else {
+ // Show a Message
+ Toast t = Toast.makeText(this, getString(R.string.share_link_no_support_share_api), Toast.LENGTH_LONG);
+ t.show();
+
+ }