From 0fc94f3c727269d576afa1d2d9a8a5a8eaf9ae0c Mon Sep 17 00:00:00 2001 From: Fabian Wickborn Date: Fri, 22 Aug 2014 16:33:43 +0200 Subject: [PATCH] Support more Android camera paths I scratched my own itch and addressed https://code.google.com/p/camlistore/issues/detail?id=494 for my HTC One M8 which stores pictures taken with its camera to /sdcard/DCIM/100MEDIA. Hardcoding these paths is far from being a good solution. I hope I can find the time to get deeper into Android coding and come up with some for https://code.google.com/p/camlistore/issues/detail?id=37 over the next weeks. Change-Id: I4e351c1915c5c7f66948d434d72763c826a25a16 --- clients/android/src/org/camlistore/UploadService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/clients/android/src/org/camlistore/UploadService.java b/clients/android/src/org/camlistore/UploadService.java index c0969b89f..4f9a34dc5 100644 --- a/clients/android/src/org/camlistore/UploadService.java +++ b/clients/android/src/org/camlistore/UploadService.java @@ -278,6 +278,8 @@ public class UploadService extends Service { ArrayList dirs = new ArrayList(); if (mPrefs.autoDirPhotos()) { dirs.add(Environment.getExternalStorageDirectory() + "/DCIM/Camera"); + dirs.add(Environment.getExternalStorageDirectory() + "/DCIM/100MEDIA"); + dirs.add(Environment.getExternalStorageDirectory() + "/DCIM/100ANDRO"); dirs.add(Environment.getExternalStorageDirectory() + "/Eye-Fi"); } if (mPrefs.autoDirMyTracks()) { @@ -336,6 +338,8 @@ public class UploadService extends Service { Log.d(TAG, "Starting background watchers..."); synchronized (UploadService.this) { maybeAddObserver("DCIM/Camera"); + maybeAddObserver("DCIM/100MEDIA"); + maybeAddObserver("DCIM/100ANDRO"); maybeAddObserver("Eye-Fi"); maybeAddObserver("gpx"); }