Hi friends,
I have try to build vibration using Nokia UI APIs in follwing devices,
Nokia 3650(MIDP 1.0,CLDC 1.0)
Nokia N-Gage QD (MIDP 1.0,CLDC 1.0)
Nokia 6600 (MIDP 2.0,CLDC 1.1) with version "5.53.0"
Code i've used for Nokia 3650,Nokia N-Gage QD :
"try
{
DeviceControl.startVibra(100, 3000);
}catch( Exception e )
{
al = new Alert("Alert","Error while enabling vibration using Nokia UI API.",imageError[0],AlertType.ERROR);
//wait for user to acknowledge the alert
al.setTimeout(Alert.FOREVER);
//Display alert,show main form when done
midlet.display.setCurrent(al,this);
System.err.println("Enable to vibrate using Nokia UI."+e); }"
And for Nokia 6600 i've used the Code:
"if((midlet.display.vibrate(3000)))
{
System.out.println("Playing vibration.......");
}
else
{
try
{
DeviceControl.startVibra(100, 3000);
}catch( Exception e )
{
al = new Alert("Alert","Error while enabling vibration using Nokia UI
API.",imageError[0],AlertType.ERROR);
//wait for user to acknowledge the alert
al.setTimeout(Alert.FOREVER);
//Display alert,show main form when done
midlet.display.setCurrent(al,this);
System.err.println("Enable to vibrate using Nokia UI."+e); }
}"
While enabling the vibration option neither it vibrate nor it throw IllegalStateException .
Does Nokia 3650,Nokia N-Gage QD also have some known issues like Nokia 6600?
Can we build vibration on devices using Nokia UI APIs?
Can anyone resolve this.
Regards,
Sachin Warang.

Reply With Quote

