Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User ronikoren's Avatar
    Join Date
    Jan 2007
    Posts
    31
    the statement Display.getDisplay(this).vibrate(milis)
    does not cause my E65 to vibrate.
    it vibrates fine when a call comes in.
    i tried the same midlet on 6320 and it vibrates fine.
    any ideas why the E65 cannot be programmed to vibrate?
    do i have to mess with the settings?
    thanks
    rk

  2. #2
    Nokia Developer Moderator r2j7's Avatar
    Join Date
    Aug 2007
    Posts
    1,595
    Hello rk,

    according to MIDP 2.0 spec:

    "vibrate(int)
    ..
    The device MAY limit or override the duration. For devices that do not include a controllable vibrator, calls to this method return false. .."

    I'm not sure if this is the case with E65. Could you implement a test MIDlet to return the boolen value to the screen, something like:
    boolean value;
    Form f;

    value = Display.getDisplay(this).vibrate(milis);

    if(!value)
    {
    f.append("False=no vibra support available for E65.");
    }
    else
    f.append("True");
    Regards,
    r2j7

  3. #3
    Registered User ronikoren's Avatar
    Join Date
    Jan 2007
    Posts
    31
    hi r2j7,
    thanks for the info.
    the E65 returns false. i also tried the test on 6230 (sys 40)
    which does vibrate and the method indeed returns true for it.
    so is there a way to hack the E65 phone into supporting
    programmatic vibration? some *# command perhaps...?
    thanks
    rk

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Hey,

    Please read this text carefully..
    public boolean vibrate(int duration)

    Requests operation of the device's vibrator. The vibrator is intended to be used to attract the user's attention or as a special effect for games. The return value indicates if the vibrator can be controlled by the application.

    This method switches on the vibrator for the requested duration, or switches it off if the requested duration is zero. If this method is called while the vibrator is still activated from a previous call, the request is interpreted as setting a new duration. It is not interpreted as adding additional time to the original request. This method returns immediately; that is, it must not block the caller while the vibrator is running.

    Calls to this method are honored only if the Display is in the foreground. This method MUST perform no action and return false if the Display is in the background.

    The device MAY limit or override the duration. For devices that do not include a controllable vibrator, calls to this method return false.

    Parameters:
    duration - the number of milliseconds the vibrator should be run, or zero if the vibrator should be turned off
    Returns:
    true if the vibrator can be controlled by the application and this display is in the foreground, false otherwise
    Throws:
    IllegalArgumentException - if duration is negative



    You can check for the given time in millis by you.Or the things those are written here.

    Hope this can help you.
    Thanks
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Replies: 31
    Last Post: 2008-12-26, 11:45
  2. Can symbian be upgraded on E65?
    By cdgeorge in forum Geolocation and Navigation
    Replies: 3
    Last Post: 2008-05-19, 17:28
  3. Try...Good softwares for E65.
    By carox in forum General Development Questions
    Replies: 0
    Last Post: 2007-09-19, 05:59
  4. Nokia E65 J2ME HttpConnection cannot get cookies from WAP gateway
    By kmurphy in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-09-03, 18:25
  5. CommConnection does not work with Series 60 SDK, but works in JWT
    By jackiechan2001 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2004-02-04, 09:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved