Moto wrote:
> Currently my lists can contain max 60 items and the
> elements are fairly complex, about 5 TextViews no backgrounds.
> 
> So multiple ListViews is not good for one activity?

"Good" versus "not good" is a binary statement. In reality, it is more a
continuum of increasing "not good" as you increase the number of
ListViews, the number of rows in those ListViews, and the number of
widgets per row (TextViews, layouts, etc.) that you wind up holding onto
to achieve your desired effects. The "fatter" your activity becomes, the
more likely it is that it will be "not good" in the eyes of users, because:

-- It crashes due to out of memory errors, perhaps on lower-end handsets
that come with less RAM for applications

-- It kicks too many other applications out of memory when it runs

-- It generates so much garbage that the garbage collector slows down
whatever application they run next (e.g., a game or video that cannot
keep up the frame rate)

-- It winds up being killed off forcibly, rather than gracefully shut
down and saving its state, because it uses up too much memory and
Android needs that memory quickly to handle some incoming phone call or
text message or something

-- And so on

Whether your app meets any of those criteria is impossible to say based
on a set of emails -- only you and your users will be able to tell.

So, while I am convinced that several thin, cheap activities are better
than one fat, expensive activity that performs all the same functions,
that is just a rule of thumb. Only you and your users have the
application and can determine if, indeed, you are using more memory than
is wise.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

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