J2ME & Surpressing Text Input Boxes

Posted on 2005-05-05
Last Modified: 2010-05-19
I have a J2ME app that accepts numerical input via the following fields:

new TextField("Time In?", "", 4, TextField.NUMERIC);

On our old cell phones, this command works just fine.  We type the numbers *directly* into the field.

Unfortunately, on our new cell phones (like our Motorola V551 phones or our Nokia 3320s) when you start to type into the field a "text entry" type dialog appears that takes your input.  You then have to press "OK" to the text entry box (which places the information into the field) and then "OK" in my program.  These extra steps are frustrating and if you're "too fast" what you type is lost.

How can I suppress it?
Question by:NerdyMike

    Author Comment

    Wow -- either I've asked a question that no one can answer, wasn't specific enough on the question or didn't assign enough points?

    I'll double the points if that'll help...
    LVL 15

    Expert Comment

    >> wasn't specific enough on the question ...
    It looks like its not a J2ME settings but rather a device specific behaviour [you can try to post it in Wireless as well]

    Author Comment

    Neither phone has it as an option to turn off -- and I actually don't want to turn it off phone wide.  (text messaging would be killer hard without it)

    What I'm stuck on is that there are so many other Java programs on the market that don't have this problem.  When you're playing 'snake' or some other game, and controlling it from the keypad, it doesn't pop up a text entry screen every time you try to do something.

    I guess I have to, somehow, not use TextFields and read directly from the keypad?  Does that seem reasonable?
    LVL 15

    Expert Comment

    > Does that seem reasonable?
    I think so.

    Author Comment

    After much research, I've found that there is no way to do this other than to re-program all my forms as a "canvas".  That's too much work for this project, so I'm just going to have to put up with it as is....

    Accepted Solution

    PAQed with points refunded (500)

    Community Support Moderator

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now