×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    36

    Post Timer for inserting pause.

    Hi
    Is there any methode in J2me like timer.start(),timer.stop() and timer.pause().
    i want to use it while entering alphabets in textfield.
    like while
    pressing 9 1 time it shows 9
    pressing 9 2 times it shows w
    pressing 9 3 times it shows x
    pressing 9 4 times it shows y
    pressing 9 5 times it shows z
    i want to put a proper wait time before moving on to next key.


    if any link available for this please paste.
    thanks.
    <<MaaZ>>

  2. #2
    Registered User
    Join Date
    Aug 2006
    Posts
    17

    Re: Timer for inserting pause.

    To control this times activities, you can do this with Timer and TimerTask classes.
    Using this, you'll be able to schedule and cancel the execution of a task.

    []s
    Neto

  3. #3
    Regular Contributor
    Join Date
    Jun 2008
    Location
    Singapore
    Posts
    167

    Re: Timer for inserting pause.

    Hi,

    I am not sure to understand what really you want, but to implement keypress x times like that, I think we simple catch KeyPress() method. Inside keypress(), we create counter. This counter only recalculated if the keypress is different or after a duration.

    Like that, you can completely control the behavior of keypress.
    ---Knowledge sharing is power---

    Hans

Similar Threads

  1. When can you set the screensaver's Refresh Timer Value?
    By azhrei in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2008-08-23, 10:12
  2. [Announce] Timer Sample (code)
    By JOM in forum Symbian
    Replies: 5
    Last Post: 2008-06-15, 00:23
  3. Crash with multiple ao_timer
    By noreli in forum Symbian
    Replies: 2
    Last Post: 2007-11-01, 06:18
  4. Timer delay between playbacks???
    By lalitsharma in forum Symbian
    Replies: 3
    Last Post: 2005-09-09, 11:45
  5. How to send SMS and dial for nokia 3310 ??
    By tsupuntu in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2005-08-29, 12:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×