久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Android -- Google+ 即時上傳如何工作?

Android -- How does Google+ instant upload work?(Android -- Google+ 即時上傳如何工作?)
本文介紹了Android -- Google+ 即時上傳如何工作?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在 Android 上使用新的 Google+ 應用程序時遇到了一個似乎在網上找不到的技術問題.即時上傳如何掛鉤到原生相機應用程序?

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 native camera application?

我可以打開 Google+ 應用程序中的一項功能,我使用本機相機應用程序拍攝的任何照片都會自動上傳到 Google+ 上的私人相冊.無論 Google+ 應用程序當前是否正在運行,這似乎都是正確的.是否有任何類型的鉤子可以在我的應用程序中注冊回調事件以訪問剛剛拍攝"的圖片以獲得一些后期處理的好處?我真的很想為我目前正在編寫的應用程序利用此功能.

I can turn on a feature in the Google+ application and any pictures that I take with the native camera app are automatically uploaded to a private album on Google+. And this seems to be true whether the Google+ application is currently running or not. Is there any type of hook that I can register a callback event for in my application to access "just-taken" pictures for some post-processing goodness? I'd really like to tap into this functionality for an application that I am currently writing.

非常感謝任何正確方向的見解或提示!謝謝!

Any insight or hints in the right direction are greatly appreciated! Thanks!

推薦答案

不完全確定 Google+ 是如何做到的,但一種可行的方法是使用 ContentObserver 接口:抓取 MediaStore.Images.Media ContentProvider 并附加一個 ContentObserver 到它.每當添加相機圖像時,您都會收到通知,您可以進行相應處理(包括上傳).

Not entirely sure exactly how Google+ does it, but one way that would work is to use the ContentObserver interface: grab the MediaStore.Images.Media ContentProvider 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).

同樣的技術適用于幾乎所有能夠正確處理 ContentObserverContentProvider(我假設都是 ContentProvider,但是你永遠無法分辨).

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).

這篇關于Android -- Google+ 即時上傳如何工作?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Why does the android emulator camera stop unexpectedly?(為什么android模擬器相機會意外停止?)
Android camera , onPictureTaken(byte[] imgData, Camera camera) method amp; PictureCallback never called(Android camera , onPictureTaken(byte[] imgData, Camera camera) 方法 amp;PictureCallback 從未調用過) - IT屋-程序員軟件開發技
Understanding the libGDX Projection Matrix(了解 libGDX 投影矩陣)
QR code reading with camera - Android(使用相機讀取二維碼 - Android)
IP camera with OpenCv in Java(Java中帶有OpenCv的IP攝像頭)
Android mock Camera(Android 模擬相機)
主站蜘蛛池模板: 亚洲一区二区视频在线观看 | 午夜精品一区二区三区免费视频 | 日本天堂视频在线观看 | 欧美91| 国产精品福利视频 | 二区中文 | 亚洲精品一区中文字幕 | 久久精品一区 | 91av视频在线免费观看 | 亚洲国产aⅴ精品 | 亚洲午夜三级 | 久草热播 | 成人国产精品久久久 | 国产日屁| 日韩欧美在线不卡 | 国产视频一区二区 | 成人午夜激情 | 高清一区二区三区 | 欧美久久久久久久 | 一级做受毛片免费大片 | 色www精品视频在线观看 | 欧美三级免费观看 | 亚洲成a人片| 国产欧美一区二区三区久久人妖 | 天天精品综合 | 国产1区在线 | 日本成年免费网站 | 第一av | 成人影院午夜 | 亚洲一区二区三区在线免费 | 亚洲精品68久久久一区 | 亚洲精品中文字幕av | 91 久久 | 一级高清免费毛片 | 丝袜一区二区三区 | 日韩激情网 | 成人免费小视频 | 久久lu| 欧洲视频一区二区 | 日韩精品中文字幕在线 | 亚洲精品毛片av |