> As far as a cache -- you shouldn't count on your process being evicted to
> clear a cache.  This has problems the other way -- there is no guarantee
> your app will be killed *ever* while in the background, since it may never
> clear its cache.  You should use other policies for this.  For example,
> after a certain amount of time (via the alarm manager maybe), etc.

I could wait a little time after going in BG, and then clear cache.
But what if the app gets killed before my timer expires?

I can't clear cache immediately on going to BG, or else the app
performance will suck.

Is there a solution to this dilemma?

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