11-20-2009 07:46 AM
Currently I've got 2 screens utilizing almost the same functionality and I'd rather extract common logic into some base class but they 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?
Solved! Go to Solution.
11-20-2009 08:00 AM
mainscreen extends fullscreen. main difference is the title and status area. usually it should not be a problem to replace a fullscreen with a mainscreen.
11-20-2009 08:11 AM
Hi simon_hain, thanks for quick reply. I know it MainScreen extends FullScreen. I'm just afraid of getting an exception at runtime that my app doesn't have the MainScreen or that MainScreen has to be the first or smth like that. Are you 100% sure I can have the application workable on BlackBerry OS without MainScreen? The reason I am curious is that app has to support lots of BB devices and we can't test on all of them. Thanks.
11-20-2009 08:14 AM
what do you mean by "without mainscreen"? if you use only fullscreen: sure. if it is an uiapplication you have to use at least one screen.
if you don't want to have this constraint you can use application, but you have to do UI, if any, using global screens.
11-20-2009 08:34 AM
>>>>>what do you mean by "without mainscreen"? if you use only fullscreen: sure. if it is an uiapplication you have to use at least one screen.
<<<<< I meant not using MainScreen class. I want to use only FullScreen classes for my UI. I guess you answered my question if this is 'official' BTW then my UI would be more consistent as MainScreen title comes with that gray background and mine not .