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

  • Home
  • SEARCH
  • 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 6644431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:09:59+00:00 2026-05-26T00:09:59+00:00

I am having a bit of a problem with an app I’m developing for

  • 0

I am having a bit of a problem with an app I’m developing for BlackBerry.

I have a series of Item objects on the screen, each with a DefaultCommand tied to it. Example
below:

...
cmdBrowse = new Command(temp.id,Command.ITEM,0);        
mainList.setDefaultCommand(cmdBrowse);
mainList.setItemCommandListener(icl);
...

Previously just clicking on the item with the confirm button would run the proper command. No problem there.

Then I added the handleKeyReleased method to capture the BlackBerry’s back button as follows:

protected boolean handleKeyReleased(int keyCode, int gameAction) {
if(keyCode==1769472) {
    /*code to deal with back button*/
    return true;
} else {
    return false;
}
}

Now when I click on the mainList Item with the confirm button, it brings up the list of commands first and I have to click again to actually run the command. Two clicks where it used to be one.

So, is there a way to either:

A. Keep the single click behaviour while still being able to capture the back button with handleKeyReleased

or

B. Capture the back button in a different way ?

  • 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-26T00:10:00+00:00Added an answer on May 26, 2026 at 12:10 am

    I ended up overlooking one very simple thing. All I had to do was call the superclass’s handleKeyReleased method and everything worked perfectly.

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

Sidebar

Related Questions

Having a bit of a problem, Due to the source-control set-up we use, each
I'm having a bit of a problem. I have a datatable in the parent
I'm having a bit of a problem here. We have 2 urls let me
I'm having a bit of a problem with my Android application. I have 2
i'm having a bit of a weird problem. I programmed a asp.net mvc app
I'm creating an app but I'm having a bit of a problem, not a
I'm in my first big app and I'm having a bit of a problem
Hey guys im having a bit of a problem with my iPhone app where
Having a bit of a problem creating an instance of an object. Bear in
I am having a bit of a problem. I get a RAW char* buffer

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.