[android-developers] getThumbnail sometimes is very slow!
Dear Android developers,
I'm developing some apps for an android based device.
One of these apps needs to show some thumbnails of the images stored
in the sdcard, the problem is that most of the times the single call
to getThumbnail gets more than 1 second to be executed.
My application does the getThumbnail (using MINI_KIND) in a thread,
this thread runs only when there is something to show (when the user
move for example to the next preview page) everything is controlled by
a semaphore. I've looked also at the Gallery3D code that does
something similar but it also uses its own cache service.
Digging down in the code I've found that the blocking part is in
ActivityManagerNative.java.
It looses most of the time when executing this piece of code in :
public ContentProviderHolder getContentProvider(IApplicationThread
caller, String name)
{
.....
mRemote.transact(GET_CONTENT_PROVIDER_TRANSACTION, data, reply, 0);
reply.readException();
.....
}
Is there any Android guru that can give me some hints about this
strange thing?
Are there some particular guidelines to follow when getting thumbnails
and have good performances?
Thank you all.
mrA
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home