Display.getWidth vs Graphics.getScreenWidth ())

Hello

What is the difference between these and who should be used?

Thank you.

Display.getWidth vs Graphics.getScreenWidth ())

The doc of the API for getScreenWidth charts gives you the answer:

getScreenWidth
public static int getScreenWidth()
Deprecated. Use Display.getWidth)

Tags: BlackBerry Developers

Similar Questions

  • Graphics.getScreenWidth () and the height is obsolete

    I use a recipe of screen scrolling and methods

    Graphics. getScreenWidth () and Graphics.getScreenHeight are deprecated.  Does anyone know an updated version of these methods?

    Thank you

    Scientist

    net.rim.device.api.system.Display.getWidth () and getHeight() are the recommended way to do it now.

    Note that the view class requires the signature - when I needed this information and wanted to quickly test something at home, I used the obsolete (but not requiring not signature) graphics... methods and then replaced by display... methods to work.

  • Aspire E5 - 511G: display driver intel graphics drivers hd for windows 8 (r) is no longer

    Hi all

    I bought my Aspire E5 - 511G a few days.

    I have successfully installed Windows 7 Professional (x 64).

    I installed all the drivers downloaded form the support also section successfully.

    The problem is that about every 5 ~ 10 minutes, I get the following message:

    "display driver intel graphics drivers hd for windows 8 (r) stopped responding and has recovered".

    This message itself is not a problem. The problem is that during Skype video calls after receiving this message, I see more or my own video and video of the callee.

    Not only that, restart the call does not correct the problem.

    The only solution is to restart Skype, but it does not work every time.

    I had a similar problem with youtube videos, but I solved the problem by setting NVIDIA as graphics processor preferred for the browser application, but I have no option for Skype.

    Can someone please? It is very very annoying.

    problem

    Looks like that I managed to solve the problem.

    Firstly, the link you provided was worng. The appropriate driver URL is https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=24329&lang=eng

    As you can see it is the same driver for windows 7/8/8.1-64-bit.

    Second, when I download and install it I get a message that my driver is up to date already (actuall I had other issues but that's another story)

    In a Word, to install it, I did the following:

    1 downloaded the zip of the "win64_153330.zip" driver version

    2 extract the zip file to a folder.

    3. in the windows Device Manager, I uninstalled the graphics driver intel existing HD. So my screen stopped working (which is expected).

    4 restart the laptop, windows loaded with the default VGA driver.

    5. Device Manager open, the crux of the VGA, click right and choose driver update driver.

    6. in the Update Driver Wizard I chose the location of already extracted files (step 2).

    7 installing the driver successfully passed and asked windows to restart.

    Now, after the reboot, I have a Skype has appealed for about 20 minutes and did not get the pilot error.

    Also played some videos youtube - new error now.

    Summary:

    The current version of the driver (of work) is 10.18.10.3958

    The version of the driver provided by Acer's 10.18.10.3621

    I'll post an update a few days more later how things happen.

  • INSPIRON 1440 - Display Driver Intel Graphics Accelerator for Windows Vista (R) has stopped working

    Sometimes the screen of my computer crashes (turns not blue, everything freezes) and nothing works, not even ctrl + alt + delete.

    Then, after a few minutes pass it says "Display Driver Intel Graphics Accelerator for Windows Vista (R) Stopped working but is distributed.

    Subsequently, the computer works fine. This has happened twice now.

    I've seen on other forums that I may need to uninstall and reinstall my display driver but I'm not sure how or which driver to choose. Any information would be greatly appreciated.

    I have a Dell Inspiron 1440 Windows 7 64-bit OS. Thank you!

    Service tag deleted by the privacy policy.

    First uninstall all applications related to the program for example audio, video, webcam application. Press [Windows] and [e] and click on uninstall or change a program:

    This will bring up a list of the installed programs:

    Double-click the program associated with the unit to start the uninstallation. In your case, it will say something like the graphics card Intel.

    Get the latest driver from the Intel Download Center. The pilot will be in Vista and Windows 7:

    https://Downloadcenter.Intel.com/Detail_Desc.aspx?DwnldID=22166

  • Display.getWidth () and Display.getHeight () does not

    I have added two variables public static int in the main class (large public static Sub and I initialize these variables in the class as Main() constructor):

    w = Display.GetWidth ();

    h = Display.GetHeight ();

    I have no error, but when I try to use these variables of a class of the screen, it returns 0 (the original values are - 1). I don't know what is happening.

    Thanks for your help.

    I'm going to do some experiments to see if I can reproduce this. I don't think that this should happen. But I would recommend this place anyway:

    Add (new LabelField ("w =" + Display.getWidth () + "h =" + Display.getHeight ()));

    Who should have the desired behavior.

  • display driver intel graphics accelerator driver for windows Vista (r) stopped responding and has recovered?

    I recently formatted my laptop (fujitsu siemens) and she ALWAYS had windows 7 installed inside. However, since I formatted, sometimes white people just screen out and I get the message:

    display driver intel graphics accelerator driver for windows Vista (r) stopped responding and has recovered?
    Any ideas what could be going wrong?

    Update all the drivers on Fujitsu support site, for your model

  • Can I use an iMac 27 "mid-2011 in target Display Mode broken graphics card?

    I inherited the iMac, and rather than buying a new graphics card, want to use it as a second monitor on my MacBook Pro, with thunderbolt. I tried to connect the iMac and MBP with a thunderbolt cable, but F2 command is not turn on/off the iMac in display mode. I'm doing something wrong?

    I think that you need the graphics card to be able to use the TDM. You must also use a good video cable Thunderbolt such as those used with your other view.

  • How do I display two signals graphic multiplot

    Hi, I am currently working on a LabVIEW program that requires me to display two signals measured by two current using MyRIO sensors OR. I am facing problems displaying two signals on dashboard of data, I know how and what should I log in the block diagram Front Panel of LabVIEW so that both signals, measured by the current sensors can be displayed on the dashboard of data?

    -Introduction to LabVIEW: http://www.ni.com/getting-started/labview-basics/ and http://www.learnni.com/
    -Check the labview\examples\general\graphs\charts.llb for examples of the waveform card: https://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/types_of_graphs_and_charts/
    -Examples: http://digital.ni.com/public.nsf/allkb/21E8163F259DA2058625703B007511AA , https://decibel.ni.com/content/docs/DOC-40940 , and https://decibel.ni.com/content/docs/DOC-5574

  • Display drivers Intel graphics accelerator driver for windows Vista (r) is not responding

    at the Lair he I don't know how to help in this

    Hello Shabirali,

    Welcome to the Microsoft community where you can find all the answers related to windows.

    According to the description, it seems that you are having problems with the display driver.

    1. were there any changes (hardware or software) to the computer before the show?

    2. What is the brand and model of the computer?

    Perform the steps in the link and check.

    "Display driver stopped responding and has recovered" error in Windows 7 or Windows Vista

    Meet us if you encounter any problems with the display driver or any other problem of Windows, and I'd be happy to help you.

    Good day!

    Hope this information helps.

  • How to start a PopupScreen?

    Hello

    I am facing a strange problem with PopupScreen and how to throw one.

    I try to make a page "load" that is displayed during the execution of a thread.

    I started with a sample code here: http://supportforums.blackberry.com/t5/Java-Development/Sample-Please-Wait-or-Progress-Bar-Code/td-p...

    That's why the way I call the PopupScreen can be weird.

    My problem is that when I want to launch the anti-pop in the constructor of the screen, I have a RuntimeException and when I put it in a ButtonField change event and simulate the click event it works fine.

    So I was wondering what is the difference?

    For your information, this is my code that works:

    public final class ScreenCache extends MainScreen
    {
        Screen s;
        PleaseWaitPopupScreen waitScreen = null;
    
        public ScreenCache()
        {
            super(NO_VERTICAL_SCROLL | USE_ALL_WIDTH);
            s = this;
    
            ButtonField startButton = new ButtonField("Start", ButtonField.LEFT | ButtonField.CONSUME_CLICK);
            startButton.setChangeListener( new FieldChangeListener()
            {
                public void fieldChanged(Field field, int context)
                {
                    waitScreen = new PleaseWaitPopupScreen("Chargement", "Chargement des données");
    
                    ThreadCache _requestThread = new ThreadCache(waitScreen);
                    _requestThread.start();
    
                    UiApplication.getUiApplication().pushModalScreen(waitScreen);
    
                    UiApplication.getUiApplication().popScreen(s);
                    UiApplication.getUiApplication().pushScreen(new ScreenList());
                }
            });
            this.add(startButton);
    
            EventInjector.invokeEvent(new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_CLICK, 0, 0, 0));
            EventInjector.invokeEvent(new EventInjector.NavigationEvent(EventInjector.NavigationEvent.NAVIGATION_UNCLICK, 0, 0, 0));
        }
    
       protected void paint(Graphics graphics)
        {
            EncodedImage ei = EncodedImage.getEncodedImageResource("img/SplashScreen.png");
            EncodedImage ei2 = new ToolsImage().ResizeImage(ei, Display.getWidth(), 0);
    
            graphics.drawBitmap(new XYRect(0, 0, Display.getWidth(), Display.getHeight()), ei2.getBitmap(), 0, 0);
        }
    
       protected boolean onSavePrompt()
       {
           return true;
       }
    
    }
    

    My PopupScreen is very simple, it only shows text and animated images, so the problem probably isn't there.

    I'm on version 5.0 and I'm on the BlackBerry 9550 Simulator tetsing.

    Try using invokeLater pushModal, anti-pop and pushScreen calls.

    Scott

  • a strange problem on quite demand. Pls help me. Thank you very much

    public class Searchbox extends Manager {
        private Bitmap searchbarBitmap;
        private int searchbarheight;
        private int searchbarwidth;
        public Searchbox() {
            super(NO_VERTICAL_SCROLL);
            if(Display.getHeight()<440){
                searchbarheight = getFont().getHeight() + 13;
                searchbarwidth=Display.getWidth()-60;
                searchbarBitmap = Scaleimage.resizeBitmap("Bold/fake_search_bar.png",
                        searchbarwidth, searchbarheight);
            }else{
            searchbarheight = getFont().getHeight()+10;
            searchbarwidth=Display.getWidth();
            searchbarBitmap = Scaleimage.resizeBitmap("Storm/fake_search_bar.png",
                    searchbarwidth, searchbarheight);
            }
        }
    
        protected void sublayout(int width, int height) {
            Field field = getField(0);
            layoutChild(field, searchbarBitmap.getWidth(), searchbarBitmap
                    .getHeight());
            if(Display.getHeight()<440){
            setPositionChild(field, 30, 6);}
            else{
                setPositionChild(field, 45, 6);
            }
            setExtent(searchbarBitmap.getWidth(), searchbarBitmap.getHeight());
        }
        public int getPreferredWidth()
        {
            return searchbarBitmap.getWidth();
        }
        public int getPreferredHeight()
        {
            return searchbarBitmap.getHeight();
        }
        protected void paint(Graphics graphics) {
            graphics.drawBitmap(0, 0, searchbarBitmap.getWidth(), searchbarBitmap
                    .getHeight(), searchbarBitmap, 0, 0);
            super.paint(graphics);
        }
    
        public String getText() {
            return ((EditField) getField(0)).getText();
        }
    
    }
    

    I'm writing a screen, this screen is the first screen of this application. This screen have a lot of buttons and a search box. The problem is:

    When I click on the button esc to quite this request if the searchbox onfocus, it will get the Eception message: NullpointException

    public class StorelistScreen extends MainScreen implements Container {
        private Merchant merchant;
        private VerticalFieldManager backgroundmanager;
        private LabelField title;
        private ListField storelist;
        private storelistCallback storelistCallback;
        private VerticalFieldManager listmanager;
        private String titleString;
        private Vector storeVector;
        private String imageurl;
        private String cat;
        private Mapbar mapbar;
        private double curlat;
        private double curlng;
        private Vector imageVector;
        private boolean offer;
        private BitmapField offerlogoField;
        private Bitmap offerBitmap;
        private HorizontalFieldManager titleManager;
        private Vector offerVector;
        private HorizontalFieldManager bottombuttonManager;
        private VerticalFieldManager bottomManager;
    
        public StorelistScreen(Merchant merchant, String tilesString,
                Vector storeVector, String cat, Vector imageVector,
                final boolean offer, double curlat, double curlng,
                Vector offerVector) {
            super(NO_VERTICAL_SCROLL | NO_VERTICAL_SCROLLBAR|DEFAULT_CLOSE);
            this.merchant = merchant;
            this.titleString = tilesString;
            this.storeVector = storeVector;
            this.cat = cat;
            this.imageVector = imageVector;
            this.offer = offer;
            this.offerVector = offerVector;
            setCurlat(curlat);
            setCurlng(curlng);
            VirtualKeyboard vk = null;
            if ((vk = UiApplication.getUiApplication().getActiveScreen()
                    .getVirtualKeyboard()) != null) {
                vk.setVisibility(VirtualKeyboard.HIDE);
            }
            if (Display.getWidth() < 440&&Display.getHeight()>440) {
                imageurl = "Storm/amex-splash.png";
            } else {
                imageurl = "Bold/detail_background_without_webview.png";
            }
            int backgroundwidth=Display.getWidth();
            int backgroundheight=Display.getHeight();
            final Bitmap backgroundbitmap = Scaleimage.resizeBitmap(imageurl,
                    backgroundwidth,backgroundheight);
            backgroundmanager = new VerticalFieldManager(NO_VERTICAL_SCROLL
                    | NO_VERTICAL_SCROLLBAR | USE_ALL_HEIGHT | USE_ALL_WIDTH
                    | NO_SYSTEM_MENU_ITEMS) {
                protected void sublayout(int width, int height) {
                    super.sublayout(Display.getWidth(), Display.getHeight());
                    Field field = (Field) getField(0);
                    Manager field2 = (Manager) getField(1);
                    layoutChild(field, Display.getWidth(), field.getHeight());
                    if (Display.getHeight() < 480) {
                        setPositionChild(field, 0, 10);
                        setPositionChild(field2, 5, 70);
                        layoutChild(field2, Display.getWidth() - 10, Display
                                .getHeight()
                                - 70 - mapbar.getPreferredHeight());
                    } else {
                        setPositionChild(field, 0, 10);
                        setPositionChild(field2, 5, 60);
                        layoutChild(field2, Display.getWidth() - 10, Display
                                .getHeight()
                                - 60 - mapbar.getHeight() - 30);
                    }
                    setExtent(Display.getWidth(), Display.getHeight());
                }
    
                protected void paint(Graphics graphics) {
                    graphics.clear();
                    graphics.drawBitmap(0, 0, Display.getWidth(), Display
                            .getHeight(), backgroundbitmap, 0, 0);
                    super.paint(graphics);
                }
            };
            if (offer) {
                if (titleString.equalsIgnoreCase("1")) {
                    offerBitmap = Bitmap
                            .getBitmapResource("Bold/list_logo_selects.png");
                } else if (titleString.equalsIgnoreCase("2")) {
                    offerBitmap = Bitmap
                            .getBitmapResource("Bold/list_logo_10X.png");
                } else {
                    offerBitmap = Bitmap.getBitmapResource("Bold/list_logo_15.png");
                }
                offerlogoField = new BitmapField(offerBitmap, FIELD_HCENTER
                        | USE_ALL_WIDTH);
            } else {
                title = new LabelField() {
                    public void layout(int width, int height) {
                        setExtent(Display.getWidth(), 30);
                    }
    
                    public void paint(Graphics g) {
                        g.setColor(5934280);
                        g.drawText(titleString, 0, 0, DrawStyle.HCENTER, Display
                                .getWidth());
                        super.paint(g);
                    }
                };
            }
            titleManager = new HorizontalFieldManager(NO_HORIZONTAL_SCROLL
                    | NO_HORIZONTAL_SCROLLBAR) {
                protected void sublayout(int width, int height) {
                    super.sublayout(width, height);
                    if (getField(0) == title) {
                        if (Display.getHeight() < 440) {
                            setPositionChild(getField(0), 0, 10);
                        } else {
                            setPositionChild(getField(0), 0, 20);
                        }
                    } else {
                        if (Display.getHeight() < 440) {
                            setPositionChild(getField(0), 150, 0);
                        } else {
                            setPositionChild(getField(0), 100, 0);
                        }
                    }
                    setExtent(Display.getWidth(), height);
                }
            };
            if (offer) {
                titleManager.add(offerlogoField);
            } else {
                titleManager.add(title);
            }
            backgroundmanager.add(titleManager);
            listmanager = new VerticalFieldManager(VERTICAL_SCROLL
                    | VERTICAL_SCROLLBAR);
            backgroundmanager.add(listmanager);
            final Bitmap mapbuttonbitmap = Bitmap
                    .getBitmapResource("Storm/map_button.png");
            storeDTO sDto = (storeDTO) storeVector.elementAt(0);
            double storelat = sDto.getLat();
            double storelng = sDto.getLng();
            String firstdbname = sDto.getDbaname();
            String firstadd1 = sDto.getAdd1();
            mapbar = new Mapbar(mapbuttonbitmap, storelat, storelng, firstdbname,
                    firstadd1);
            if (Display.getWidth()<440&& Display.getHeight()>440) {
            bottombuttonManager = new HorizontalFieldManager(NO_HORIZONTAL_SCROLL
                    | NO_HORIZONTAL_SCROLLBAR);
            int offersize = offerVector.size();
            int buttonwidth = Display.getWidth() / (offersize + 2);
            StatusButton home = new StatusButton("Home", true, Field.FIELD_HCENTER,
                    buttonwidth, 30, merchant);
            StatusButton cards = new StatusButton("Cards", false,
                    Field.FIELD_HCENTER, buttonwidth, 30, merchant);
            bottombuttonManager.add(home);
            for (int i = 0; i < offersize; i++) {
                offerDto offerdto = (offerDto) offerVector.elementAt(i);
                final String offernum = offerdto.getOffer();
                String offertitle = offerdto.getTitle();
             String offersString =null;
                if (cat.equalsIgnoreCase("0")) {
                    offersString = "http://amex.isingeo.com/search?lat=lat="
                            + Double.toString(getCurlat())
                            + "&lng="
                            + Double.toString(getCurlng())
                            + "&udid=wibble&nearby=1&offer=" + offernum;
                } else {
                    offersString = "http://amex.isingeo.com/search?lat="
                            + Double.toString(getCurlat()) + "&lng="
                            + Double.toString(getCurlng())
                            + "&udid=wibble&nearby=1&cat=" + cat
                            + "&offer=" + offernum;
                }
                StatusButton statusButton = new StatusButton(offertitle, offernum,
                        Field.FIELD_HCENTER, offersString, merchant, buttonwidth,
                        30, this);
                bottombuttonManager.add(statusButton);
    
            }
            bottombuttonManager.add(cards);
            bottomManager = new VerticalFieldManager(NO_VERTICAL_SCROLL
                    | NO_VERTICAL_SCROLLBAR | FIELD_HCENTER);
                bottomManager.add(mapbar);
                bottomManager.add(bottombuttonManager);
                setStatus(bottomManager);
            } else {
                setStatus(mapbar);
            }
            add(backgroundmanager);
            setstoreinfo();
        }
    
        protected boolean onSavePrompt() {
            return false;
        }
    
        public void setstoreinfo() {
            int storelistlength = storeVector.size();
            storelist = new ListField() {
                private boolean hasFocus = false;
    
                public void onFocus(int direction) {
                    hasFocus = true;
                }
    
                public void onUnfocus() {
                    hasFocus = false;
                    super.onUnfocus();
                    invalidate();
                }
    
                public void paint(Graphics graphics) {
                    int width = Display.getWidth();
                    XYRect redrawRect = graphics.getClippingRect();
                    if (redrawRect.y < 0) {
                        throw new IllegalStateException("Error with clipping rect.");
                    }
                    int rowHeight = getRowHeight();
    
                    int curSelected;
    
                    if (hasFocus) {
                        curSelected = getSelectedIndex();
    
                    } else {
                        curSelected = -1;
                    }
    
                    int startLine = redrawRect.y / rowHeight;
                    int endLine = (redrawRect.y + redrawRect.height - 1)
                            / rowHeight;
                    endLine = Math.min(endLine, getSize() - 1);
                    int y = startLine * rowHeight;
                    int[] yInds = new int[] { y, y, y + rowHeight, y + rowHeight };
                    int[] xInds = new int[] { 0, width, width, 0 };
    
                    ListFieldCallback callBack = this.getCallback();
    
                    for (; startLine <= endLine; ++startLine) {
                        storeDTO dtostore = (storeDTO) callBack
                                .get(this, startLine);
                        if (startLine == curSelected) {
    
                            graphics.setColor(11584734);
                            graphics.drawFilledPath(xInds, yInds, null, null);
                            if(Display.getWidth()<440&&Display.getHeight()>440){
                                drawforStorm(graphics, dtostore, y, width);
                            }
                            else{
                            drawforBold(graphics, dtostore, y, width);}
    
                        } else {
                            if(Display.getWidth()<440&&Display.getHeight()>440){
                                drawforStorm(graphics, dtostore, y, width);
                            }
                            else{
                            drawforBold(graphics, dtostore, y, width);}
                        }
                        y += rowHeight;
                        yInds[0] = y;
                        yInds[1] = yInds[0];
                        yInds[2] = y + rowHeight;
                        yInds[3] = yInds[2];
                    }
    
                    // super.paint(graphics);
                }
    
                private void drawforBold(Graphics graphics, storeDTO dtostore,
                        int startLine, int width) {
                    Bitmap imageBitmap = dtostore.getImagebitmap();
                    int imagewidth = imageBitmap.getWidth() + 10;
                    String cuisine = dtostore.getCuisine();
                    String dbname = dtostore.getDbaname();
                    String add1 = dtostore.getAdd1();
                    String add2 = dtostore.getAdd2();
                    String distance = dtostore.getDistance();
                    double distancedouble = Double.parseDouble(distance);
                    distancedouble = Math.floor(distancedouble * 10) / 10;
                    String finaldistance = String.valueOf(distancedouble) + "km";
                    String state = dtostore.getState();
                    graphics.drawBitmap(10, startLine, width, imageBitmap
                            .getHeight(), imageBitmap, 0, 0);
                    FontFamily family = null;
                    try {
                        family = FontFamily.forName(FontFamily.FAMILY_SYSTEM);
                    } catch (ClassNotFoundException e) {
                        e.printStackTrace();
                    }
                    Font font = family.getFont(Font.APPLICATION, 15);
                    graphics.setFont(font);
                    graphics.setColor(5929160);
                    graphics.drawText(dbname, imagewidth, startLine,
                            DrawStyle.LEFT, width);
                    Font font2 = family.getFont(Font.APPLICATION, 12);
                    graphics.setColor(5925199);
                    graphics.setFont(font2);
                    graphics.drawText(cuisine, imagewidth, startLine
                            + font.getHeight(), DrawStyle.LEFT, width);
                    graphics.setColor(6908265);
                    graphics.drawText(add1, imagewidth, startLine
                            + font.getHeight() + font2.getHeight(), DrawStyle.LEFT,
                            width);
                    graphics.drawText(add2 + " " + state, imagewidth, startLine
                            + font.getHeight() + font2.getHeight() * 2,
                            DrawStyle.LEFT, width);
                    graphics.setColor(5929160);
                    graphics.drawText(finaldistance, Display.getWidth() - 80,
                            startLine, DrawStyle.LEFT, Display.getWidth() - 40);
                    graphics.drawLine(5, startLine, Display.getWidth() - 10,
                            startLine);
                }
                private void drawforStorm(Graphics graphics, storeDTO dtostore,
                        int startLine, int width) {
                    Bitmap imageBitmap = dtostore.getImagebitmap();
                    int imagewidth = imageBitmap.getWidth() + 10;
                    String cuisine = dtostore.getCuisine();
                    String dbname = dtostore.getDbaname();
                    String add1 = dtostore.getAdd1();
                    String add2 = dtostore.getAdd2();
                    String distance = dtostore.getDistance();
                    double distancedouble = Double.parseDouble(distance);
                    distancedouble = Math.floor(distancedouble * 10) / 10;
                    String finaldistance = String.valueOf(distancedouble) + "km";
                    String state = dtostore.getState();
                    graphics.drawBitmap(10, startLine, width, imageBitmap
                            .getHeight(), imageBitmap, 0, 0);
                    FontFamily family = null;
                    try {
                        family = FontFamily.forName(FontFamily.FAMILY_SYSTEM);
                    } catch (ClassNotFoundException e) {
                        e.printStackTrace();
                    }
                    Font font = family.getFont(Font.APPLICATION, 13);
                    graphics.setFont(font);
                    graphics.setColor(5929160);
                    graphics.drawText(dbname, imagewidth, startLine,
                            DrawStyle.LEFT, width);
                    Font font2 = family.getFont(Font.APPLICATION, 12);
                    graphics.setColor(5925199);
                    graphics.setFont(font2);
                    graphics.drawText(cuisine, imagewidth, startLine
                            + font.getHeight(), DrawStyle.LEFT, width);
                    graphics.setColor(6908265);
                    graphics.drawText(add1, imagewidth, startLine
                            + font.getHeight() + font2.getHeight(), DrawStyle.LEFT,
                            width);
                    graphics.drawText(add2 + " " + state, imagewidth, startLine
                            + font.getHeight() + font2.getHeight() * 2,
                            DrawStyle.LEFT, width);
                    graphics.setColor(5929160);
                    graphics.drawText(finaldistance, Display.getWidth() - 80,
                            startLine, DrawStyle.LEFT, Display.getWidth() - 10);
                    graphics.drawLine(5, startLine, Display.getWidth() - 10,
                            startLine);
                }
    
                protected boolean navigationClick(int status, int time) {
                    if (getSize() != 0) {
                        if ((status & KeypadListener.STATUS_TRACKWHEEL) != KeypadListener.STATUS_TRACKWHEEL) {
                            storeDTO storedto = (storeDTO) storelistCallback.get(
                                    storelist, getSelectedIndex());
                            if (!offer) {
                                merchant.showStoreDetail(storedto, false);
                            } else {
                                merchant.showStoreDetail(storedto, true);
                            }
                        }
                    }
                    return super.navigationClick(status, time);
                }
            };
            storelistCallback = new storelistCallback();
            storelist.setCallback(storelistCallback);
            storelist.setRowHeight(50);
            for (int i = 0; i < storelistlength; i++) {
                storeDTO store = (storeDTO) storeVector.elementAt(i);
                storelist.insert(i);
                storelistCallback.Insert(store, i);
            }
            listmanager.add(storelist);
        }
    
        public void formenuitem(String urlstring, String offernum) {
            Bitmap offernewBitmap = null;
            this.offer = true;
            final String title = offernum;
            if (offer) {
                if (title.equalsIgnoreCase("1")) {
                    offernewBitmap = Bitmap
                            .getBitmapResource("Bold/list_logo_selects.png");
                } else if (title.equalsIgnoreCase("2")) {
                    offernewBitmap = Bitmap
                            .getBitmapResource("Bold/list_logo_10X.png");
                } else {
                    offernewBitmap = Bitmap
                            .getBitmapResource("Bold/list_logo_15.png");
                }
            }
            BitmapField offernewBitmapField = new BitmapField(offernewBitmap,
                    FIELD_HCENTER);
            titleManager.replace(titleManager.getField(0), offernewBitmapField);
            String jString = GetPostJson.getjsonString(urlstring);
            JSONObject jsonObject = null;
            try {
                jsonObject = new JSONObject(jString);
                int num = jsonObject.getInt("n");
                if (num>0) {
                    int blistlength = storelist.getSize();
                    for (int n = 0; n < blistlength; n++) {
                        storelist.delete(0);
                        storelistCallback.removeItem(0);
                    }
                    JSONArray jsonArray = jsonObject.getJSONArray("merchants");
                    int jlength = jsonArray.length();
                    for (int i = 0; i < jlength; i++) {
                        storeDTO storedto = new storeDTO();
                        JSONObject storeJsonObject = jsonArray.getJSONObject(i);
                        String curcat = Integer.toString(storeJsonObject.getInt("cat1"));
                        Bitmap iconBitmap = null;
                        int imagelength = imageVector.size();
                        for (int n = 0; n < imagelength; n++) {
                            imagedto image = (imagedto) imageVector.elementAt(n);
                            if (curcat.equalsIgnoreCase(image.getCat())) {
                                iconBitmap = image.getIcon();
                            }
                        }
                        if (iconBitmap != null) {
                            storedto.setOfferlink(storeJsonObject
                                    .getString("offer_link"));
                            storedto.setAdd1(storeJsonObject.getString("add1"));
                            storedto.setAdd2(storeJsonObject.getString("add2"));
                            storedto.setDbaname(storeJsonObject
                                    .getString("dbaname"));
                            storedto.setDistance(storeJsonObject
                                    .getString("distance"));
                            storedto.setImagebitmap(iconBitmap);
                            storedto.setLat(storeJsonObject.getDouble("lat"));
                            storedto.setLng(storeJsonObject.getDouble("lng"));
                            storedto.setPhone(storeJsonObject.getString("phone"));
                            storedto.setState(storeJsonObject.getString("state"));
                            if (cat.equalsIgnoreCase("0")) {
                                storedto.setCuisine(storeJsonObject
                                        .getString("description"));
                            } else {
                                storedto.setCuisine(storeJsonObject
                                        .getString("cuisine"));
                            }
                            storelist.insert(i);
                            storelistCallback.Insert(storedto, i);
                        }
    
                    }
                }
                else{
                    int blistlength = storelist.getSize();
                    for (int n = 0; n < blistlength; n++) {
                        storelist.delete(0);
                        storelistCallback.removeItem(0);
                    }
                }
            } catch (JSONException e) {
                e.printStackTrace();
            }
            titleManager.invalidate();
            storelist.invalidate();
        }
    
        private MenuItem cardItem = new MenuItem("Cards", 100, 10) {
            public void run() {
                String cardurl = "http://amex.isingeo.com/cards";
                String jString = GetPostJson.getjsonString(cardurl);
                Vector cardsVector = new Vector();
                try {
                    JSONArray jsonArray = new JSONArray(jString);
                    int jlength = jsonArray.length();
                    for (int i = 0; i < jlength; i++) {
                        JSONObject jsonObject = jsonArray.getJSONObject(i);
                        CardDto cardDto = new CardDto();
                        String imageurl = jsonObject.getString("face_url");
                        Bitmap faceBitmap = Getimage.getbitmapdata(imageurl);
                        if (faceBitmap != null) {
                            cardDto.setFaceBitmap(Scaleimage.resizeBitmap(
                                    faceBitmap, 90, 57));
                            cardDto.setCard_title(jsonObject
                                    .getString("card_title"));
                            cardDto.setDescription(jsonObject
                                    .getString("description"));
                            cardsVector.addElement(cardDto);
                        }
                    }
                } catch (JSONException e) {
                    e.printStackTrace();
                }
                merchant.showCardsScreen(cardsVector);
            }
        };
    
        protected void makeMenu(Menu menu, int instance) {
             if (!(Display.getHeight() == 480 && Display.getWidth() == 360)) {
            int offersize = offerVector.size();
            for (int i = 0; i < offersize; i++) {
                offerDto oDto = (offerDto) offerVector.elementAt(i);
                final String offertitle = oDto.getTitle();
                final String offernum = oDto.getOffer();
                menu.add(new MenuItem(offertitle, 100, 10) {
                    public void run() {
                        String offersString = null;
                        if (cat.equalsIgnoreCase("0")) {
                            offersString = "http://amex.isingeo.com/search?lat=lat="
                                    + Double.toString(getCurlat())
                                    + "&lng="
                                    + Double.toString(getCurlng())
                                    + "&udid=wibble&nearby=1&offer=" + offernum;
                        } else {
                            offersString = "http://amex.isingeo.com/search?lat="
                                    + Double.toString(getCurlat()) + "&lng="
                                    + Double.toString(getCurlng())
                                    + "&udid=wibble&nearby=1&cat=" + cat
                                    + "&offer=" + offernum;
                        }
                        formenuitem(offersString, offernum);
                    }
                });
            }
            menu.add(cardItem);
             }
        }
    
         protected void sublayout(int width, int height) {
         setPositionDelegate(0, 0);
         layoutDelegate(width, height);
         setPosition(0, 0);
         setExtent(width, height);
         }
    
        // public boolean onClose(){
        // this.close();
        // return true;
        // }
        public void setCurlat(double curlat) {
            this.curlat = curlat;
        }
    
        public double getCurlat() {
            return curlat;
        }
    
        public void setCurlng(double curlng) {
            this.curlng = curlng;
        }
    
        public double getCurlng() {
            return curlng;
        }
    }
    

    If you run this application via a simulator, simply press the debug icon (it's the one that looks like a bug, just left of the "Run" icon), but make sure that you debug the correct application. If you are running on a simulator application, attach the device to your computer via USB and go to--> Debug configurations--> BlackBerry device debugging--> debugging the server (1) (or any other profile you want to use this topic). He will have to use the JDE 'Join all connected', but you can specify the device. Then from there, you can select the debug icon. All output of the Simulator will be displayed in the console at the bottom of the screen window. Also, there is a default debugging view that can be used to display the stack traces, etc. Breakpoints will work only in debug mode.

    Hope that helps,

    ~ Dom

  • Why cannot display graphic for me on a Web site

    I was running Firefox fine until today, when I noticed no. websites that I went to display all the graphics at all. Not even the firefox home page where is the download link, firefox logo that is normally he does not appear. Do not see the logo of google in google or elsewhere. I never changed the settings at all. I was just watching a YouTube video and then loaded another site, never displayed graphics (at first I thought it was just a problem with the site so I ignored it, but then I went to about 7 other sites and every single one of the gave me the same problem.) As I said, I have never changed the settings, or don't have I have download the plug-ins. IM actually typing this on another browser because it is annoying me.

    Thanks, I fixed the problem on my own by resetting firefox to the State of origin

  • graphical display of the files?

    I am looking for a disk utility that displays files and graphically sizes that will work under win/vista of suggestions?

    TreeSize Free http://www.jam-software.com/treesize_free/

    WinDirStat http://windirstat.info/

  • DV6-6136 with base graphics intel - enough power for external 24 "1920 x 1200 display?

    OK, I bought the cheapest possible HP dv6 with Intel graphics/shared video ram. The machine is Core i3 with Win7, 6G.

    Is it enough power to drive a 24 "1920 x 1200 external graphics to display existing Intel graphics card? Dv6 has of course ports both VGA and HDMI.

    I am looking to buy a higher end 24 '' monitor (HP Compaq LA2405wg) who is ready to pivot (vertical or horizontal).

    Thank you!

    The laptop has enough power display. Intel HD 3000 is the best of the HD currently available 2000-3000 HD options.

    The maximum resolution depends on the type of connection.

    • Display port: 2500 x 1600
    • HDMI/DVI/VGA: 1920 x 1200

    The problem you have is that you need a DVI or HDMI input on the screen that you buy to reach the screen high definition. VGA is not capable of delivering 1080 p.  

    When you check the specifications do not forget that you buy a monitor/screen that has:

    The signal input connector
  • Graphics not displaying SVG didn't not when loading uploaded to FTP

    Hi I have generated a site that contains SVG graphics as I have done several times before.

    During the testing phase, I was using the catalyst for business adobe for the customer to see and everything appears perfectly.

    After you download the site so that it hosts the provider of the site does not display the SVG graphics instead they are displayed as question marks.

    I checked all the assets are linked correctly tried different browsers, mobile devices etc and downloaded from the site as a whole several times but the result is the same.

    The only variable seems to be the different hosting server, is it possible that it is disabling SVG somehow? It is not sensible, of course I could convert the SVG to png but this kind defeats the purpose when you want graphics fast strong, if anyone has experience a similar problem I would really appreciate hearing from you me.

    Thanks in advance!

    Hi Gavin,

    I'm not able to reproduce the problem, as it seems to be loading all the graphics.

    If there are old files, please try to clear the directory and re - download a fees of Muse.

    If the problem persists, please let me know what browser do you work?

    Kind regards

    Akshay

Maybe you are looking for

  • Why do you need disk space in an Apple TV?

    The older Apple TV has no HD space, while the most recent have 32 or 64 G of disk space. What do you need HD space? Is it just for installation applications as on iPhones/iPads, so more space you have, the apps, you can install? It has nothing to do

  • The fans are not stop working after upgrading BIOS on Satellite A200

    Hello IM using the Satellite A200-1bp. I recently updated my BIOS 5.20 - winner and my fans are not end all the time working.I think his reason is update BIOSI'm looking for the BIOS below. Please help me...

  • blocking of ink problem

    When I print to note as a grayscale, ink is like cant fully lock in the documentWhen I use the highlighter to highlight the words, no black ink only make my words become blurred and also spoilt my highlighter At the beginning I look it as a problem o

  • (Redirected) Painful interaction with Dell technical support

    Before Thanksgiving 2015 my computer started having problems.  I contacted support and they decided to send a technician home for repair.  Literally, the repair worked for less than an hour.  I've contacted support and said that he should be delivere

  • application of mail for Windows 8

    Trying to use the new mail app, but it doesn't accept my password.  I tried one of my email and I used when you first install this new computer.  What password does?  And what to do to get one that works? Thanks for any help!