Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Alok Kulkarni
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

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Jim Blackler
i need to show a List of around 8000 to 1 elements at the same time on the UI OK that's mad. How can the user reasonably navigate that many entries in a single list? Search and pagination are your friends here. Jim On 23 March 2010 10:17, Alok Kulkarni kulsu...@gmail.com wrote: Hi,

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Jonas Petersson
Jim Blackler wrote: i need to show a List of around 8000 to 1 elements at the same time on the UI OK that's mad. How can the user reasonably navigate that many entries in a single list? Search and pagination are your friends here. I would tend to agree, however for my Prisjakt

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Yahel
There is no way anyone is going to actually browse more than a few hundred item in a list. Ever !! Jim is right : Search Pagination. If your users are dumb enough to asks the full list and you are actually going to do it, then implements a list like the android market and fetch a 100 items at a

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Jonas Petersson
Yo again, A few clarifying comments to Yahel: Yahel wrote: There is no way anyone is going to actually browse more than a few hundred item in a list. Ever !! I guess it depends what the items are, but in my particular tree 95% of the lists are quite short and being sortabel should help a

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Yahel
Hey Jonathan, A few clarifying comments to Yahel Sorry, my answer was not really meant at you directly, more to the original poster :) Your app seems successful and to work the way you want so I wouldn't dare tell I can do best :D I guess it depends what the items are, but in my particular

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Alok Kulkarni
Ok so my application is basically an entertainment package which is used for Music Playback on the device The App fetches information for songs from the server(Song info ,Artist Info ,Album info ,Genre etc etc) and then shows it on the UI as different lists Ex All Songs List, Artsist,Inside

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Alok Kulkarni
A small correction *At end of each List, on the leaf node there is a list of Songs and not a single song..One thing i found out using HeirarchyViewer (or in the layout XML file itself) that the depth of the layout is 5 to 6 for some screens.So i need to resttructure that as well as i have read

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Streets Of Boston
Cache the list as a file on the phone's SD-card. Fill it up as more and more data is downloaded from the server (this does require some for of syncing, though). Then load your list from the file on the SD-card, but only partially as not to make the ArrayAdapter too large (to have too many

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Alok Kulkarni
Thanks Streets Of Boston. I am using SqliteDatabase already right now as well as reusing the ConvertView :) And one more thing , the App many times carshes when the syncing is going on with the server ,ie even before the ListScreen is shown with the songs filled in it. Songs from the server come

Re: [android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Jonas Petersson
Yahel wrote: Hey Jonathan, Um, Jonas is what I typically trigger to. Your app seems successful and to work the way you want so I wouldn't dare tell I can do best :D My pleasure. The 4.6x average rating seems to have earned me a Nexus, so I guess it is doing OK. If your users can try to

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Yahel
Um, Jonas is what I typically trigger to. My apologies, I misspeedread :D (fetching 20 items each time the user reaches the end of the list) Ok sorry, I misunderstood you I thought you left your user make a query that would really download 30 000 results at a time :s The app is

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-23 Thread Yahel
The App fetches information for songs from the serve Any reason why you don't use the common answer to this problem like Jonas or the Android team in the Market : Load more items(25 or more at a time) from the server or the database when reaching the bottom of the screen ? I might have

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-22 Thread Bob Kerns
While you can split it up between two applications, remember you only have one processor core, so it'll be a tricky tradeoff to avoid bad performance. But you have a more immediate problem. 10 MB of UI is clearly broken. My guess is that you have a lot of layout files, and you're inflating them

[android-developers] Re: Application Crashing OutOfMemory .Restructuring Help Needed

2010-03-22 Thread Yahel
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