Hi,
Thanks for your responses..
Actually i found out  that i was checking the PSS section and not the USS
section. So the UI size is not 10 mb , but its still 8 mb. :( I think there
might be something going really wrong in the app.There is one case where i
restart the App .In this case i have a single Activity in my app and i start
the same activity from this activity.So i believe there is some memory leak
present there..
Regarding inflating the views from the XML , yes i have around 15 XML layout
files.
But i believe tht when i do a setContentView() over a previous
setContentView() the previous screen is automatically GC'd..
The structure is that within one Activity i do setContentView of different
layouts  depending upon current Screen(Using Enums for different
screens)according to user response.
Problem with storing in database is that i need to show a List of around
8000 to 10000 elements at the same time on the UI.If i keep things in DB
only then it will take a lot of time loading the Screen which is not
acceptable.
So any suggestions regarding
1) how i can check for memory leaks of incorrect layout usage
2)how to optimise logic for showing around 10000 elements at the same time
(I see that android takes care of inflating for the list item as per
scrolling on the list )
Thanks,
Alok.
On Tue, Mar 23, 2010 at 3:59 AM, Yahel <kaye...@gmail.com> wrote:

> I have to agree with Jim.
>
> The 16mb(24 on some devices) enforcement is there for a reason.
>
> Beside you might run into weird behavior, since if an app is not
> showing it can be murdered dead and simple to release memory. This
> leads to a scenario where your server could be killed leaving your
> main app in a not too stable state.
>
> Would you mind sharing with us how you achieve a layout that weight 10
> mb ?
> Maybe we can find a way to lighten it.
>
> Good luck
>
> Yahel
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe from this group, send email to android-developers+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to