michaelarnauts

[Android] Camera Backup: Instant Upload

Recommended Posts

When the app listens for the android.hardware.action.NEW_PICTURE and android.hardware.action.NEW_VIDEO message, it can start the upload immediatly after the image is taken.

 

This is how Google+ and Dropbox allow syncing of new images immediatly.

Currently, we have to wait untill the app wakes up and does the syncing.

Share this post


Link to post
Share on other sites

This sounds great. In early versions, the syncing from the phone app was almost instant. Battery saving features made it suck a bit for me in the recent releases. Sure I can disable all the battery saving features but your suggestion looks pretty cool to me! Should be implemented. 

Share this post


Link to post
Share on other sites

Maybe I'm wrong but from what I understand Sync gets a notification from the OS when a file is written to (either a new file or an update to an old one).  If this is the case, and you're syncing your photos folder, listening for the action wouldn't help, as either way it should be instant.  Remember, the "10 minute" setting is just a backup -- it should sync more or less immediately.

 

It's possible that as chromaniac is suggesting, there may be battery saving features at play here that introduce a delay, but if that's the case then they would affect listening for android.hardware.action just as much.  Maybe a sort of "latency" option to allow the user to adjust battery-savings vs latency would be in order if this is the case though?

Share this post


Link to post
Share on other sites

Not really true, the app does not "get notified by the OS", the app is polling the files for changes.

 

The more aggressive it's polling settings, the quicker it will detect changes and start syncing. (and the more CPU and battery it will use)

 

I prefer a slower polling or actually non at all as long as the phone is not connected to the WIFI. Once connected to WIFI it can poll as little as once every 30 min for all i care, my files don't change so often.

 

For the camera backup i would also love to see the usage of "android.hardware.action.NEW_PICTURE" implemented, with a option to overrule the "sync via WIFI only" for the camera backup, so my pics get uploaded instantly even on mobile network (incl option to disable roaming usage)

 

I am however also happy with how it works now, my extended battery lasts 6 days, even with btsync enabled, so i"m good :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.