Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 58
Registered: ‎09-23-2009
My Device: Not Specified

BlackBerry - Multiple Screens or Single Screen with Content Manager?


I've seen projects which use many screens each one for different layout and functionality.

I've seen projects with only one screen (like wizard workflow) where content is changed on user interaction (and this seems to be logical to use single screen in wizards).

But also I've seen projects (apps like game or messenger or phone settings utility) which use single screen for different functionalities.

I can see such advantages of having single screen in app:

  • keep same decoration design and menu or toolbar (which may be also achieved with inheritance)
  • keep single screen in ui stack (which may be achieved by pop/push screen)
  • easy to handle data over application

Can you tell other advantages/disadvantages of single screen app?
When its better to use this approach?

Thank you!

This question on StackOverflow

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: BlackBerry - Multiple Screens or Single Screen with Content Manager?

I don't think there is a right answer to this question. 


I would suggest you design your screen flow around how the User will use the application.  For example, if a pop concept is useful, then push and later pop. 


However I would not recommend that you continually refresh screens with new content/layout if you do not have to.  I find it much faster to create a new screen. 


Regarding your points:

1) I would use inheritance for this if you can.

2) As you say, push/pop does this, and personally I have never had any problems with stack overflow except when I have some something silly.

3) I think it is good design to separate your presentation from your data, so rather than sharing your screen your screens could share data objects. 

Posts: 17,006
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: BlackBerry - Multiple Screens or Single Screen with Content Manager?

i usually combine both approaches.

i use a single screen, with a fixed title bar, a background image etc etc, and change the content using managers.

for some tasks i push a new screen, usually when the layout requires something else.


i would say it depends on the use-cases the app provides. if you have a main area the single-screen-approach is probably better.


i agree on the data sharing, of course. my screens or managers get a serviceregistry where they can find everything useful.

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter