BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 07-14-2009, 11:53 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 7100T
PIN: N/A
Carrier: verizon
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Popup Gif image problem

Please Login to Remove!

Hi,
I am trying to popup a gif image on selection of menu item.
here is my code ( i have skipped menu creating/addition here as thats not the problem).

This code, shows a blank popup screen & hangs the application. why?



public class HelpScreen extends PopupScreen {

public static final String ID = "HelpScreen";
private static final String HELP= "help";
private BitmapField helpField = new BitmapField();
private Bitmap helpImage;



public HelpScreen() {

super(new HorizontalFieldManager());

add(helpField);
}

protected void onDisplay() {
super.onDisplay();
try {
helpImage = EncodedImage.getEncodedImageResource("mhelp.gif" ).getBitmap();

} catch ( NullPointerException e ) {
throw new RuntimeException( "Can't load help file: " + e.toString() );
}

helpField.setBitmap(helpImage);
}

}
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

Philips Advance Ballast 120V to 277V YS1012.
$22.0
Philips Advance Ballast 120V to 277V  YS1012. pictureSTANDARD 61119 BALLAST *NEW IN BOX*
$85.0
STANDARD 61119 BALLAST  *NEW IN BOX* pictureSTANDARD E22142-UV-TDE FLX BALLAST 31278STD FLEX CONNECT *NEW IN BOX*
$45.0
STANDARD E22142-UV-TDE FLX BALLAST 31278STD FLEX CONNECT *NEW IN BOX* pictureEUC 180 A 01 Projector Lamp Ballast #T3915 YS
$50.0
EUC 180 A 01 Projector Lamp Ballast  #T3915 YS pictureSylvania 49908 4 Lamp 120V/277V Ballast for 32W T8 Fluorescent Light Bulb (S5...
$20.95
Sylvania 49908 4 Lamp 120V/277V Ballast for 32W T8 Fluorescent Light Bulb (S5... picture






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