×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    14

    Seting vibration using Platform Services 1.0

    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

  2. #2
    Nokia Developer Moderator
    Join Date
    Jun 2008
    Location
    Tampere
    Posts
    833

    Re: Seting vibration using Platform Services 1.0

    Hi,

    Referenced wiki article describes how Vibra can be enabled, but it does not actually turn it on. It is similar to switching on Vibrating Alert on from Profile settings.
    WRT 1.0 PS 1.0 System information API is the right way to control the Vibra.

    Br,
    -Ilkka

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    14

    Re: Seting vibration using Platform Services 1.0

    Hi,
    I didn't realized that.
    I was hoping that there was a method to control vibration without the <embed> object.

    Thanks for your help,
    pivo

Similar Threads

  1. MMS with Platform Services
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 9
    Last Post: 2011-03-11, 20:39
  2. Platform Services
    By vijayvittal in forum Symbian Web Runtime
    Replies: 2
    Last Post: 2010-09-06, 10:39
  3. Get IMEI using Platform Services 2.0 APIs
    By amar_wagholikar in forum Symbian Web Runtime
    Replies: 2
    Last Post: 2010-08-03, 07:35
  4. Using Platform Services with Network file access publish settings
    By sangramp@cybage.com in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2010-07-05, 13:10
  5. Replies: 1
    Last Post: 2010-04-29, 13:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •