Hi everyone!

I would like to use a custom font inside my android application, but it 
seems like the usage of it causes memory leaks. (I have tested the solution 
below with other fonts as well!)
The problem in a nutshell: Each activity, that uses the custom font, needs 
to load it on every start or resume. That causes the leaks! Just like that:

*Typeface.createFromAsset()...*

I already did some research about this problem and finally came across this 
link: http://code.google.com/p/android/issues/detail?id=9904
Basically it's the same problem! However, the solution provided there, 
caches the custom font so that each activity only needs to load it once. 
But that's still a problem!
Even the first load of each activity makes my app look slowly! I am looking 
for a solution that caches the font only one time on start up for all 
activities.

Does somebody have an idea how to do that? Thanks!


Regards, John

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to