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