mirror of https://github.com/perkeep/perkeep.git
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
This commit is contained in:
parent
46cd4955dd
commit
0fc94f3c72
|
@ -278,6 +278,8 @@ public class UploadService extends Service {
|
|||
ArrayList<String> dirs = new ArrayList<String>();
|
||||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue