BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-20-2009, 06:45 AM   #1 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8700
PIN: N/A
Carrier: MTS
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Is MainScreen compulsory in BlackBerry applications?

Please Login to Remove!

Currently I've got 2 screens utilizing almost the same functionality and I'd rather extract common logic into some base class but the extend different RIM UI clases: MainScreen and FullScreen. Due to there's no multiple inheritance in java I cant figure out how to do this unless they both extend FullScreen. So the question stated in title arises. I've tested with 4.2 simulator and it works ok without the MainScreen, but I'm not sure for all the OS's out there. Does anyone know?
Offline  
Old 11-20-2009, 07:48 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

There is no rule that says you have to use MainScreen - it is provided as a convenience since it wires up some of the more typical screen features, like a title bar and various "default" menu options.
Offline  
Old 11-20-2009, 08:00 AM   #3 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

I'm going to stop answering questions on Stack Overflow until if read here first. I wonder, will I find this question on Crackberry, Blackberry Support, ...
__________________
My other Blackberry is a PlayBook.
Offline  
Old 11-20-2009, 08:35 AM   #4 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8700
PIN: N/A
Carrier: MTS
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by hrbuckley View Post
I'm going to stop answering questions on Stack Overflow until if read here first. I wonder, will I find this question on Crackberry, Blackberry Support, ...
This issue just stops my development - that's why I crosspost - to get the feedback as soon as I can. BTW you won't find it on Crackberry ;)
Offline  
Old 11-20-2009, 09:52 AM   #5 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

Answering questions stops my development, but I do it because the world is better when we all work together. When I later find out I needn't have bothered because you already had an answer from somewhere else, I'm less inclined to risk wasting my time later.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 11-20-2009, 11:02 AM   #6 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8700
PIN: N/A
Carrier: MTS
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Seems Resolved

Quote:
Originally Posted by hrbuckley View Post
Answering questions stops my development, but I do it because the world is better when we all work together. When I later find out I needn't have bothered because you already had an answer from somewhere else, I'm less inclined to risk wasting my time later.
According to supportforums and StackOverflow it is not madatory.

2 hrbuckley: damn right you are, that's why I do not hesitate to post the answer/solution everywhere where I posted the question. Then there are more chances people will find it when they'll need the same info.
Offline  
Old 11-20-2009, 12:55 PM   #7 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

Just to chime in here, and I mean this in a friendly way, you could have answered your own question in 10 minutes by coding up a simple hello-world app using FullScreen.

Offline  
Old 11-23-2009, 03:10 AM   #8 (permalink)
New Member
 
Join Date: Nov 2009
Model: 8700
PIN: N/A
Carrier: MTS
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Dougsg38p View Post
Just to chime in here, and I mean this in a friendly way, you could have answered your own question in 10 minutes by coding up a simple hello-world app using FullScreen.

As a matter of fact - I did. But I cannot test on each and every device\OS out there and the main reason for asking was to get a more-or-less official answer like a spec 'cause I couldn't find such info in developer guide.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.