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
Carrier: verizon
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Popup Gif image problem

Please Login to Remove!

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());


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

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



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