06-28-2011 03:52 PM
Developing an application for blackberry
Using Eclipse Environment
Dropped in the BBAS SDK and when we run the application on the blackberry torch emulator the app stops working and it becomes a white screen and only shows the ads.
When I take out the SDK out the constructor the application works fine.
Having issues with this problem for some time and decided to turn toward the forums.
I suspect it has something to with the vertical field manager. However im not sure of the problem
If anyone else has experienced this problem, or if you know of the solution the help would be greatly appreciated,
06-30-2011 11:35 PM
07-01-2011 12:16 AM - edited 07-01-2011 12:26 AM
Sure Here it is,
Class defination
07-01-2011 05:34 AM
07-01-2011 04:40 PM
At first we suspected the VerticalFieldManager was somehow causing the issue but after searching the forums it seems that issue actually lies somewhere with rim. The code is sound, once i remove the ad service code the application runs fine on the simulator. Once i comment it back in the I get the white sceern once again. Any solutions??
07-02-2011 01:21 AM
07-02-2011 03:38 AM
public Screen1() {
super(VerticalFieldManager.NO_VERTICAL_SCROLL);
//Set Title
setTitle("Ultimate Drinking App");
//Adservice
Banner bannerAd = new Banner(41141 , null);
bannerAd.setMMASize(Banner.MMA_SIZE_AUTO);
add(bannerAd);
//Set Background Color
_manager = (VerticalFieldManager)getMainManager();
Background bg = BackgroundFactory.createSolidBackground(0x184b97);
_manager.setBackground(bg);
//Set Background image
_manager_logo = new
VerticalFieldManager(VerticalFieldManager.USE_ALL_
VerticalFieldManager.USE_ALL_HEIGHT | VerticalFieldManager.NO_VERTICAL_SCROLL | VerticalFieldManager.FIELD_HCENTER){
//Override the paint method to draw the background image.
public void paint(Graphics graphics)
{
//Draw the background image and then call super.paint
//to paint the rest of the screen.
graphics.drawBitmap(0, 0, 326, 413, logoBitmap, 0, 0);
super.paint(graphics);
}
};
I looked into the libaray situtation to no avail even after i did make some corrections i received the same issue