problem in the view of the BitmapFields in HorizontalFieldManager in a line of Blackberry Storm

I had created a HorizontalFieldManager & BitmapFields said that.

In Blackberry Storm, Display.getWidth () is 480. I want to use 450 first to add some BitmapFields to LHS of the screen I have create running m & add 2 BitmapFields initially to RHS of the screen.

2 BimapFields that I want to show initially added to the constructor r & othsr BitmapFields that I m create runtime r added afterwords love...

class MyCanvas extends MainScreen{

MyCanvas(){

hfm_BitmapField = new HorizontalFieldManager(){            protected void sublayout(int maxWidth, int maxHeight) {                    super.sublayout(maxWidth, maxHeight);                     setExtent(Display.getWidth()-30, 60);                    }         };

startBitmap = Bitmap.getBitmapResource("start.png");        startBitmapField = new BitmapField(startBitmap, BitmapField.ACTION_INVOKE | BitmapField.FIELD_HCENTER | BitmapField.FIELD_RIGHT);hfm_BitmapField.add(startBitmapField);

endBitmap = Bitmap.getBitmapResource("end.png");        endBitmapField = new BitmapField(endBitmap, BitmapField.ACTION_INVOKE | BitmapField.FIELD_HCENTER | BitmapField.FIELD_RIGHT);hfm_BitmapField.add(endBitmapField);

drawBitmap();} 

public void drawBitmap(){

bitmap[i] = new Bitmap(50, 50); Graphics g = new Graphics(bitmap[i]);g.drawLine(5,5,25,25); bitmapField[i] = new BitmapField(bitmap[i]); synchronized(UiApplication.getEventLock()) { hfm.add(bitmapField[i]); }

}

I want startBitmapField & endBitmapField at RHS & bitmapField [i] that I m creating the runtime to LHS of HorizontalFieldManagers.

I m thinking to add 2 HorizontalFieldManagers. 1 for 1 for startBitmapField & endBitmapField & bitmapField [i]. But how to add 2 HorizontalFieldManagers or any other FieldManagers in a row?

Any solution? How to do?

Solved my problem.

Tags: BlackBerry Developers

Similar Questions

  • Problem installing the update of blackBerry Smartphones BB App World

    I have a very old BlackBerry App World build my torch.  While I wait for a Z10/Q10, I try to update.  For some reason when I update to 2.1.1.2 to 4.3.0.26 I get a Setup error.  Any suggestions on how to do it?  I don't see a way to remove the BlackBerry App World and reinstall.  Thank you.

    -Eric

    Hi ericschiff

    Welcome to the Forums of the BlackBerry Support

    What model of torch you have! If you encounter a problem with the update you can try to re - install BlackBerry World. For which first of all, go to Options > device > application > locate and remove BlackBerry World of this list.

    KB10040 : How to view or delete an installed BlackBerry smartphone applications

    After deletion to perform a battery pull reboot by removing the battery in your device is on.  After you restart your BlackBerry browser go to www.blackberry.com/appworld and download the most recent version. Perform a restart after the installation.

    Try it and tell us if you feel any problem.

  • Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Hi, actually I want the program stops when you press the stop button. but the problem is the program is runing in loop only he doesn't return tile view deleted complete execution of any body can help me for this.

    Here

  • Problems with the Windows on Windows 7 Photo Viewer, cannot open the picture

    Good evening!

    I can't open a few photos that I downloaded from my digital camera's SD card.  They are all in the same folder, and they are all JPEG.  Some of them are open very well, but there are MANY who are not open and I get the message: 'Windows Photo Viewer cannot open this photo because Photo Viewer does not support this file format, or you do not have the latest updates for Photo Viewer. "  As I said, they are all JPEG, as well as the Windows Photo Viewer is already set as my default Photo Viewer.   When I opened the window of the picture viewer I have not been invited for updates.

    I don't understand why some of my photos to shoot to the top of fine and the rest don't pull up at all.   Where will ensure that I have the latest update?  You have any other suggestions?

    Thank you in advance for your help!

    Looks like there are probably good copies elsewhere then... I was worried, you might well have lost some of your photos, and it is always better to access the card and copy and paste the files (and then check that they are ok) before using the software download and the removal from the Board. If the files have been corrupted somehow during the transfer process, they can still be recoverable in respect of the SD card using something like the free version of "recuva" providing that the SD card has not been re-used and previous files overwritten by new material. However, if your sister still photos as well which should not be necessary.

    I don't think this is likely to be a problem with the photo viewer, but let us know when you received that email... all the best - Ric.

  • Another problem in the BLOB view

    Hi all

    I have a problem in the image display on the screen. Here's my situation: I have an Oracle table, consists of string, CLOB and BLOB. I also have a web application using JSP and Servlet. My Blackberry application will access the servlet to get the data in my table. Returns an XML file, not a file JSP, servlet, then my Blackberry application will read this file, it displays on the screen. I use not BrowserField.

    My problem is... How can I display the image?

    I have tried to convert byteArray BLOB, and then again to convert to a string, inserting it into my XML. In my Blackberry app, get the string and convert it to byteArray and then use

    Bitmap.createBitmapFromBytes to get the Bitmap image. But it gives me nothing.

    Can someone help me?

    Thank you much in advance.

    Kind regards

    Novan Ananda

    I offer two General options:

    1 generate and send an image url to the XML format. Request per second to get the bytes of the images to the server. Server can presave the image in a temp folder or get the blob of the DB directly.

    2 send the image data as xml encoded in base64. Decode the device and view EncodedImage.

    I prefer the method if you send pictures not only in response. Can see the context for your asynchronous image download information.

    Thank you

    Eugen

  • Error: "Canoe Photo window Viewer save the changes to this picture because there is a problem with the property of photo file" when trying to upload photos from the iPhone to the Windows Photo Viewer.

    Original title: saving photos and videos, common sense?

    JW why I can't save a picture to the top of the right way in my windows photo viewer and Media Player (same for video too) so when I download my pictures frim my iphone on the computer a few photos have been taken vertically, and when I go to put the image a gardener would come saying ' canoe photo window Viewer save the changes to this picture because there is a problem with the file of. properties of photos? What can I do to fix this?

    JW why I can't save a picture to the top of the right way in my windows photo viewer and Media Player (same for video too) so when I download my pictures frim my iphone on the computer a few photos have been taken vertically, and when I go to put the image a gardener would come saying ' canoe photo window Viewer save the changes to this picture because there is a problem with the file of. properties of photos? What can I do to fix this?

    =============================================
    I don't know if the following links answer your question, but
    they may be worth a visit:

    Good luck and * proceed at your own risk *.

    FWIW... There is a very long discussion (several pages) to the
    following link:

    Cannot change the imported iPhone 4S photo
    https://discussions.Apple.com/thread/3444951?start=0&TSTART=0

    More Discussion

    iPhone 4S image properties is not compartible with Windows?
    Editing can be done on the computer due to the error
    "Windows Photo Viewer cannot save changes to this picture.
    because there is a problem with the properties of the image file".
    Any help?
    https://discussions.Apple.com/message/17291884#17291884

    More Discussion:

    We cannot turn a few photos in Windows 7 (but can turn others)
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

    A simple solution is to open the photos in paint or most other
    digital image editor and modify it.

    Some people have reported success using the following free download
    to remove the metadata.

    Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    Here's a way to turn...

    Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
    the rotator Lossless JPEG free
    http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/

    Free download JPEG Lossless rotating
    http://annystudio.com/software/jpeglosslessrotator/

  • Problems with the picture quality when viewing under 100%. First post on the forum.

    Hello everyone. I'm sorry, we have the GET acquainted with this way, but I'm having some problems and this is one of my recent options to get the help.   Let me explain the problem.    Consultation of a file of less than 100% zoom, everything seems jagged as anti aliasing is missing.  Once I'm at 100% zoom, everything seems as it should. The saved file (for example jpeg format) is correct. I can zoom out and seems to be always faithful to the image. The problem is related to photoshop. I installed my latest GPU drivers twice just to be sure, and it was not that.   This problem started last night and I'm not sure how to solve.  If I work on images low resolution, it is not a problem as bad because I will be working on 100% zoom, but I work on images high resolution / paintings. Somewhere around 8000 x 5000 pixels so, work 100% is not that feasible. I have attached an image that illustrates this problem. The right one is zoomed in by the version and the left is the zoom in version.  Yes, the noise is touched by it, evil, but this started last night. until then, everything seemed fine even with the noise or the sharpness of the world output. I can't imagine what I could have done to trigger it.

    test.jpgThat said, I'm at the mercy of more sophisticated here people. I hope I have posted this question in the right section. It's my first post here so I'm sorry if I missed something.   Looking forward to your answers.

    This is a simplistic view, I feel may help you to understand the reality.

    The only time that you look at your image pixels in Photoshop is when you have zoomed in to 100%, it has your look at the pixels of the image in Photoshop for your image at the resolution of your display.

    At any zoom level, looking for an image on a scale that has more or less of pixels that your real picture that too, these are displayed in your display resolution.

    Scaling done by Photoshop is made to display your image is made for good performance, not the best image quality fast interpolation.   That's why at certain levels of zoom image quality seems poorer than at other levels of zoom.

    High resolution screen now have add a new problem.   User interfaces have been designed for screens with resolutions around 100 PPI elements like text, icon and other things like checkboxes, buttons etc. were created size so it would be usable it are more or less fixed 100 dpi.   While Photoshop is designed to scale to your images in order to work well on it is has not been designed with a scalable user interface.  Photoshop can't change its UI regardless of its display high resolution will display image for you.  Display Image in Photoshop has the same resolution as the rest of the User Interface of Photoshop.  Just as there is only one resolution in all layers in a document. CC 2014 2xUI changes.  PS IU is proportional to the image of the area is to the actual resolution of the poster of resolution 1/2.

    Photoshop CC 2014 2 x UI balance all Photoshop User Interface, including the image shown at 200% which is 1/2 the resolution of your screen you cut effectively display pixel count to 1/4 of the number of actual pixels.   Your new running on a low resolution screen.     If your screen has a native resolution 200 PPI you run it at 100 ppi if your display has a 300 PPI resolution you run at 150ppi.    Which goes against the reason for high resolution.  Who would you be able to edit your images to a print resolution.  Adobe cc2x UI will scale the user interface, but not the window image soa inage is 216ppi on the Surface Pro 3 user interface is great and dpoes do not match. screen

    To be able to edit your images to a print resolution you need to display the a a print resolution and you need and demand her can scale its image and its independent user interface display.

    Currently there is no OS interface to have several areas of resolutions on a screen and applications such as Photoshop does not scale UI and Image independently.  OS and Photoshop fits what is displayed.  Executable of Adobe Photoshop is coded in a way that it say Microsoft Windows OS it will load display scaling so that he can use the native resolution of your poster.  Currently only Photoshop CC 2014 offer you with the possibility to run you view at half the resolution.

    Windows fits view you lots of resolution and as several presets.  as 100%, 125%, 150% and 200% half of resolution Adobe.    You can make a Windows registry and add an external manifest Photoshop file of the Microsoft Windows tell to handle display scale.  I have a machine to windows Microsoft Surface Pro 3 Mr. its LCD screen has a resolution of 216PPI.  Windows 8.1 had 4 preset for the scale of its LCD screen.

    Surface Pro 3 screen LCD IPS 12 "display the 9.984603532054124 3:2 aspect ratio" Wide, 6.656402354702749 "high 216.3330765278394 PPI

    Scaling of display predefined Microsoft

    100% 216 2160 x 1440 DPI

    125% 173 1728 x 1152 PPI

    150% 1440 x 960 144 PPI SP3 to the position

    200% 1080 x 720 PPI, 108

    User most these days above 1024 x 768 or better poster and Web pages are often created for pages in 800 x 600 pixels. In order to give a better grip on the resolution and scaling that I change a 800 x 600 document with px grid 25 x 25 on my Surface pro 3

    scale 4 Windows presets and captured using the 2160 x 1140 to bracts screens only to the 100% preset the image window has a 216ppi also note x 2 @ Photoshop UI UI doe does not not on-screen

    Adobe Photoshop CC 2014 2xUI scales the user interface for a display resolution 1/2 but is not suited to the actual screen resolution Image area uses. Information system support Photoshop displays the screen i 1/2 resilution 1080 x 720 but scalet imase to the actual resolution 2160 x 1440. However, the image window is the 216ppi the 108ppi of the UI via the scaling

  • Problems with the links/e-mail addresses when viewing the PDF in the browser ONLY

    Hello

    I just sent a PDF with an email address in.  There seems to be a strange problem: If the pdf file is downloaded and watched in Adobe Reader, links mailto behind text messaging addresses work as usual (for example. [email protected]). However, when this pdf is displayed directly in the browser (Chrome on Windows 7) by using the built in pdf viewer all double letters in the mailto is deleted (for example. [email protected]), but the text itself remains unchanged.

    There are two examples of that in both cases, the two double letters.

    I just tried a test with ' [email protected] ' as the test address.  Once again, the mailto link shows as "mailto: [email protected]'.»»  Remove the first double letter, but keeping the second!

    Any suggestions?

    Thank you

    Matthew

    Sorry, you will need to file a complaint with Google on this subject; Adobe has nothing to do with the viewer of PDF of Chrome.

    Or configure Chrome to use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Problems with the servers from Adobe in Germany (Workflow: InDesign-> Content Viewer)

    We had some problems with the download of our fact sheets on Adobe servers end of January / beginning of February. Also our iPads test often could not connect to the content viewer. There are outages of server in Germany during this period?

    Updates are always displayed at http://status.adobedps.com/. You can check messages to see if all coincides with when you download problems.

    Neil

  • Connection problems in the viewer of content on iPads

    Some of us in our team have problems connecting Content viewer to examine a project., we have not had this problem before - something?

    You have to identify you twice because of the bug.

  • Problem with the host view

    Hi all.

    I have a problem with the display of my physical host information. I installed FglAM on the server, deploy the cartridge of the OS, create agent. But when I access the dashboard of the hosts, I see that my host currently does not monitor.

    Agent log is good (logfile to join). I see same alarm of this host, but no performance and other information.

    Thank you

    Nikolai, I recommend that you should open a case of pension for later analysis.

    David Mendoza

  • Problem of placement for the BitmapField style

    I have a subclass the Bitmapfield like this, but the HCENTER and VCENTER styles do not work.  I have a 80 x 80 bitmapfield and bimaps that are smaller than that (like 32 x 32) appear in the upper left corner of the area of 80 x 80.  I want that they focus to this area.  How can I achieve this?  (there are several ApplicationFields in the custom handler)

    I can focus the image if I override the method object, but I still need the style bitmapfield FOCUSABLE.

    According to me, Miss me something very easy.

    public abstract class ApplicationField extends BitmapField{
    
            private Bitmap image;
    
            public ApplicationField(Bitmap image, long style) {
                super(image, Field.FOCUSABLE | Field.FIELD_HCENTER | Field.FIELD_VCENTER);
                this.image = image;
            }
    
            public int getPreferredHeight(){
                return 80;
            }
    
            public int getPreferredWidth(){
                return 80;
            }
    
    ....
    

    That is the answer... padding!

    ' public void setSpace (hSpace, hspace int int) {}
    super.setSpace (hSpace, hspace);
    }

  • Problem with the HD view import

    Importing videos that I made, first seems to like changing my sky or any background that is not physically there in an alpha, making my transparent background. When I play it in media player or quicktime, it doesn't do this, my heaven is there. I assumed it would be a problem with the click of a simple framework, but as you can see, the button should be far away because I'm on this forum before I find it. When I visited my avi in everything except HD, first does not. What is the problem?

    Ive been told that its because of my composition in lightwave that makes first to do this, but, shouldn't this just be a simple framework, I can't disable?

    The option ignore Alpha is in the dialog box interpret the film.

    I found that with this research.

  • problem with the publication in firefox and View Designer in dreamweaver

    Copied the html code of the previous site in dreamweaver to edit... pharmacodependance1; nothing on the screen with the display mode of the designer.

    Problem2: after, finally finished site, edition had problems with a part of the site in firefox. Although IE without problems on the screen. Why? and how can I solve this problem? P.S. I have now not much on writing html, say; Beginner for beginners

    site: http://fixmijdatff.nl/
    problems in firefox http://fixmijdatff.nl/index.html/Gallerij.html

    I hope someone can help me. Thanks for your time!
    Greetings from Holland,

    Ferdi

    > website: http://fixmijdatff.nl/

    You have no defined doctype and 84 validation errors. Set a doctype and then validate your page again and fix the validation errors

    > problems in firefox. http://fixmijdatff.nl/index.html/Gallerij.html

    Page not found.

  • iOS 10 problems with the Mail application

    Dear Apple and community support,

    Here's my problem:

    I have upgraded to iOS 10 on my iPhone 5s this afternoon (September 13), and now I'm not able to open e-mail - Yahoo!, and Gmail. I can receive emails, I'm not able to view the body of these emails. When I press on them, all I see is a blank white page. I can't answer emails either. I can only their flag or remove them. However, I am able to compose new e-mail messages.

    Here are the steps that I've taken to try to solve my problem:

    1. Restarted my phone
    2. Remove and re-add my Mail accounts
    3. Made a backup and a restore full while that plugged into my laptop with the latest version of iTunes.

    I should be grateful if you would help or more information on this issue.

    Thank you

    Emily

    I also have problems with the Mail application.  On my iphone, ipad, and Mac Pro.  I have several addresses, a MSN, another on Go Daddy and Gmail.  I have various weird problems with threads and every day he re-charge my emails, like if I have never read before.  Something is really problematic with Mail.

    Can the people of APPLE, you help me?

Maybe you are looking for