I had to replace the solution for controlling vibration through the <embed type="application/x-systeminfo-widget" > by code using the ISysInfo interface of the Platform Services 1.0.
I've been trying to set and stop vibration through code but I can't get it to work.
The code provided at
http://www.developer.nokia.com/Commu...bration_in_WRT
does not work either (Nokia 5800, N97, N8 and C7).
var tRESULT = __SYSOBJ.ISysInfo.GetInfo({Entity:"Features", Key:"Vibra"});
tRESULT.ReturnValue.Status - returns 1 (Vibration is available)
but setting it does not work:
var tRESULT = __SYSOBJ.ISysInfo.SetInfo({Entity:"General", Key:"VibraActive", SystemData:{Status:1}});
Still the tRESULT.ErrorCode return 0 (no error).
Anyone got this working yet?
TIA
pivo

Reply With Quote

