Vibrate Phone

You can make your phone migrate in J2ME by calling vibrate(int duration) method of javax.microedition.lcdui.Display class. The duration parameter is the number of milliseconds the vibrator should be run.

Display.getDisplay(this).vibrate(800);

9 comments:

  1. Cool application, I used for a while, it is quite useful.

    ReplyDelete
  2. Hi I am Ronak Khilosiya
    I need to defination of java project
    which application I can create?

    ReplyDelete
  3. Hi I am Ronak Khilosiya
    I need to defination of java project
    which application I can create?

    ReplyDelete
  4. vibrate fnction is not there in class javax.microedition.lcdui.Display :(

    ReplyDelete
  5. in reply to anonymous
    when u make a new projct with hello midlet..
    c the following code..hope u wl understnd..
    public void switchDisplayable(Alert alert, Displayable nextDisplayable) {
    // write pre-switch user code here
    Display display = getDisplay().vibrate(1000); //do this anonymous

    ReplyDelete
  6. using a bluetooth to make a voice call on two persons is possible

    ReplyDelete

 

Design by Blogger Buster | Distributed by Blogging Tips