4
我正在研究一個允許用戶查看圖像的應用程序,所以我發送了讓圖庫顯示圖像的意圖。出於某種原因,顯示圖像需要幾秒鐘的時間。 LogCat顯示它試圖連接到「GoogleLoginService」?爲什麼畫廊連接到互聯網?這可以通過電話或代碼關閉嗎?爲什麼Gallery很慢/訪問GoogleLoginService?
I/CacheService(19326): Preparing DiskCache for all thumbnails.
I/CacheService(19326): DiskCache ready for all thumbnails.
I/ActivityManager(1433): Starting activity: Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/x/attachments/68efeba8-7f0c-47bf-b7d7-d714f29f99c7.jpg typ=image/* cmp=com.cooliris.media/.Gallery }
I/Gallery (19326): onCreate
D/GoogleLoginService(1601): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
I/RenderView(19326): First Draw
D/GoogleLoginService(1601): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
I/ActivityManager(1433): Displayed activity com.cooliris.media/.Gallery: 477 ms (total 477 ms)
D/GoogleLoginService(1601): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
I/GridLayer(19326): Slot changing from -1 to -1
這是否發生在設備和模擬器上? 如果你想要速度,(顯然)最快的選擇將是在全屏幕「活動」中顯示圖像。如果你有多個圖像,你可以使用'ViewPager'在旋轉木馬中顯示它們。 – pablisco 2011-12-09 17:43:17