On 11/22/2012 03:19 PM, Piren wrote:
- yeah, swearing does help calm the psyche, does not help so much with
the code crashing :-P
I admit you are right. But I need to calm my psyche before starting
coding!... ;-)
- "it is unlikely i need so much memory" Fact is you have an OOM
exception... you're using too much memory:)
That's a logical fallacy, indeed. I am not getting an OOM exception due
my app is using too much memory, I am getting an OOM exception due the
underlying VM does not manage the heap properly.
Of course I can try to use less memory and may be it solves the problem,
but this not the REAL solution, it is just a WORKAROUND, because the
REAL solution should address the REAL problem.
And if its happening on your first activity, it isnt a memory leak...
- i dont know if largeHeap is useful, but according to documentation,
it should at least lower the amount of crashes some of your users
experience.
Oh, I forgot this... but I will take a look on that docs, thanks.
- if i were your user, i'd take hdpi images rather than crashes. if it
crashes, i dont use the app :)
Yeah, you are right on this, but the problem is not so simple: for
avoiding crashes for SOME users, I must release a product with lower
quality images for ALL of them. In fact, if they were only an 1% of the
users using older devices, I would simply ignore this bug at all.
Anyway I have already released a new version that uses hdpi images also
for xdpi devices. This has reduced heap use by a half or on such
devices, so I expect to have no more OOM crashes, or just 1 on 1000 in
an unknown device with a custom buggy ROM...
Best regards,
--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en