How to use vibra in Nokia API?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, April 29, 2003 11:10 PM

How to use vibra in Nokia UI API?

Re: How to use vibra in Nokia API?

Posted By:   Gralig_Bobik  
Posted On:   Monday, May 12, 2003 03:09 AM

You have to import a package named : com.nokia.mid.ui . Than use class DeviceControl which has a startVibra() and stopVibra() methods. This a simple example :

import com.nokia.mid.ui.*;

DeviceControl dc;

public void vibra() {

try {
dc.startVibra(80, 1000);
try {
Thread.sleep(1000);
} catch(InterruptedException e) {
}
dc.stopVibra();
} catch(Exception e) {
}
}

About | Sitemap | Contact