Skip to content Skip to sidebar Skip to footer

Android -- How Does Google+ Instant Upload Work?

I was playing around with the new Google+ application on the Android and I had a technical question that I couldn't seem to find online. How does the instant upload hook into the n

Solution 1:

Not entirely sure exactly how Google+ does it, but one way that would work is to use the ContentObserver interface: grab the MediaStore.Images.MediaContentProvider and attach a ContentObserver to it. Anytime a camera image is added, you'll get a notification and you can process it accordingly (including uploading).

Same technique would work for just about any ContentProvider that properly handles ContentObservers (which I'm assuming is all ContentProviders, but you never can tell).

Solution 2:

Thanks to Femi's answer in this post, I was able to take what he said and figure out how to emulate Google+'s Instant Upload feature. I wrote a tutorial about it here:

http://www.jessechen.net/blog/how-does-google-plus-instant-upload-work/

Post a Comment for "Android -- How Does Google+ Instant Upload Work?"