<bool name="recommend_enabled">true</bool>
<bool name="feedback_enabled">true</bool>
<string name="url_help">http://owncloud.com/mobile/help</string>
- <string name="url_imprint"></string>
+ <string name="url_imprint"></string>/
<string name="mail_recommend">"mailto:"</string>
<string name="mail_feedback">"mailto:apps@owncloud.com"</string>
<string name="url_app_download">"https://play.google.com/store/apps/details?id=com.owncloud.android"</string>
import com.owncloud.android.lib.common.network.WebdavUtils;
import com.owncloud.android.lib.common.utils.Log_OC;
import com.owncloud.android.lib.resources.status.OwnCloudVersion;
+import com.owncloud.android.providers.FileContentProvider;
import com.owncloud.android.services.OperationsService;
import com.owncloud.android.services.observer.FileObserverService;
import com.owncloud.android.ui.activity.FileActivity;
String encodedStoragePath = WebdavUtils.encodePath(storagePath);
Intent sendIntent = new Intent(Intent.ACTION_ATTACH_DATA);
// set MimeType
-// sendIntent.setType(file.getMimetype());
+ sendIntent.setType(file.getMimetype());
+ sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("content://" + FileContentProvider.AUTHORITY + file.getRemotePath()));
// sendIntent.setData(Uri.parse(encodedStoragePath));
// sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(encodedStoragePath));
- sendIntent.setDataAndType(Uri.parse(encodedStoragePath), "image/*");
- sendIntent.putExtra("jpg", "image/*");
+// sendIntent.setDataAndType(Uri.parse(encodedStoragePath), "image/*");
+// sendIntent.putExtra("jpg", "image/*");
// sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + encodedStoragePath));
// sendIntent.putExtra("jpg", "image/*");
public class FileContentProvider extends ContentProvider {
private DataBaseHelper mDbHelper;
+ public static final String AUTHORITY = "org.owncloud";
// Projection for filelist table
private static HashMap<String, String> mFileProjectionMap;