-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Upload photos #243
Comments
When will the auto upload trigger? Does this mean that as soon as the user takes a new photo from any of the camera application available on his device, the upload shall trigger or the photo will have to be taken from inside amahi app? |
Is should work for every camera app or at least for the default one. I think it should trigger as soon as a photo is taken. We might put a delay on place just in case the person decides to delete the picture immediately after is taken. Maybe add the image to a queue, and after a determined delay, if picture is still in the folder upload it. |
I see three options for achieving this:
Having a There's already a lot of discussion about this exact feature on the owncloud/android repo. We can look over the discussion on these issues/pr #6, #1675, #95, #1059, #110, #774; to make an informed decision on what to use in our app. @megabitdragon What do you suggest? |
We do not want to capture image from inside our app (or do we?). What we want is to get notified whenever any new image is taken on the device using any app. To capture an image from inside our app, there are two possibilities:
This is documented here. Now since we do not want any custom camera app, we do not require What we want is to register a Broadcast Receiver for |
@csoni111 Taking photos from within the app is a story for a different day but very good suggestions. I think we should use the Broadcast Receiver and the ACTION_NEW_PICTURE. We have to keep in mind that for android N, ACTION_NEW_PICTURE was removed so we need to use this instead. Can we just use the JobScheduler as described and forget about the ACTION_NEW_PICTURE? |
Unfortunately we cannot just rely on the Or we can have two separate things, the broadcast receiver for api level < 21 and JobDispatcher for api level >= 21. |
@csoni111 can you tell me what exactly the use of pathPreference in uploadSettingsFragment? |
I am sure this can be closed |
A option to auto-upload pictures from camera should be added. This should be enabled by a switch in the settings menu. Once enabled, two more field should show up specifically, path to the upload folder and a switch that will indicate if pictures should be uploaded on cellular data or not. The images need to be added to a queue and uploaded only on WiFi if the cellular data is disabled. Otherwise the images will be uploaded automatically.
The text was updated successfully, but these errors were encountered: