Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7183243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:56:23+00:00 2026-05-28T17:56:23+00:00

I am interested in having a bitmap icon that when clicked will open a

  • 0

I am interested in having a bitmap icon that when clicked will open a new screen. Now so far I have been using this link to achieve drawing the bitmap:

Blackberry Clickable BitmapField

This code is meant to draw a bitmap on the screen and evoke an action when clicked upon. It has two pictures with and without focus. I am calling it with:

CustomMenuButtonField buttonInstance = new CustomMenuButtonField("img1.png", "img2.png");
add(buttonInstance);

I have changed:

protected boolean navigationClick(int status, int time)
    {
        Alert.startVibrate(50);
        //fieldChangeNotify(0);
        return true;
    }

One issue I am having is that when I click outside the image in the field manager, the picture is still changed and an action is evoked (vibrates). From here it stays in the “focus” until I click on another text field on the window, but clicking on white space still does not change it. My question is should this be happening, and is there a way to limit it so the action is evoked JUST when you click the bitmap and not around it? Also is there a simple way to scale the bitmap into something of smaller size such as an icon? I am trying to position 4 icons that when clicked will open four different screens. If anyone knows anything about this any assistance would be appreciated. I just started Java so I’m an extreme novice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:56:24+00:00Added an answer on May 28, 2026 at 5:56 pm

    Note: I’m highly biased against the Blackberry API.

    It has been a long time since I did any work on the Blackberry (version 5) software so my advice might be totally out of date. (I think I was working version 5).

    The components provided were totally inadequate for anything we needed to do that had a custom look and feel so we took the approach of overriding the Manager class to create custom components.

    //Garbage code from a dead project
          /* (non-Javadoc)
           * @see net.rim.device.api.ui.Manager#paint(net.rim.device.api.ui.Graphics)
           */
          protected void paint(Graphics graphics) {
            if(style == Spinner.DRAW_ROUNDED_RECTANGLE)
              drawRoundedRectangluar(graphics);
            else
              drawRectangular(graphics);
          }
    

    The rest of this is garbage so I’m only posting the idea of it

    If you extend a button that works and replace the paint method (not unlike working with Swing, except infinitely more painful) you can basically do whatever you want. This would give you the ability to scale the image and do whatever you need.

    However, I hope Blackberry has updated their API in the last few years. This project was painful and took about ~ 10 times the amount of work it should have to accomplish what you thought it should take.

    Also, events need(ed?) to be consumed on the device otherwise they would automatically propagate (return true on the listeners to indicate the event is consumed.)

    Without knowing the version and the exact API I’m afraid I can’t be of more help other than saying I would highly recommend sticking with the absolute minimum requirements so it ports to all the devices OR try to accomplish the application through a mobile web interface (not always an option). I found the Blackberry to be a quagmire in my development time and I abandoned it.

    When working with it I found writing the painting from scratch was faster than trying to make their components work consistently, its doable, and 95% of the swing tutorials will translate with very little additional work.

    (Also, SWT is a little better fit for the API, you should check that out over at Eclipse–and if you’re not using Eclipse for Blackberry development pick that up while you’re at it. The RIM tools out of the box were horrible.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble getting Spring.Net to log, using Log4Net. I'm particulary interested in seeing
I'm interested in having a look at a small sample project that would highlight
I am interested in finding the numbers that exhibit the property of having the
I'm currently using this code fragment to retrieve the one xml value that will
I'm new to Rake and using it to build .net projects. What I'm interested
I'm interested in having a UIViewController that supports all orientations and cleanly uses two
I'm using Twilio in an iphone app. I'm interested in having a dialer in
I'm interested in having clients, on iOS/OS X platforms using Cocoa, having secure transaction
I'm interested in having simplejson.loads() successfully parse the following: {foo:3} It throws a JSONDecodeError
I'm interested in having a second web host run a copy of my website,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.