×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Nokia Developer Expert
    Join Date
    Feb 2008
    Posts
    29

    How to get the connection type via SysInfo API?

    Hi,
    I want to get the connection type from the SysInfo API, but the code doesn't work, seems the result is always error.
    try{
    var so2 = device.getServiceObject("Service.SysInfo", "ISysInfo");
    var criteria2 = new Object();
    criteria2.Entity="Connectivity";
    criteria2.Key="ConnectionStatus";
    var result2 = so2.ISysInfo.GetInfo(criteria2);
    alert(result2.ReturnValue.ConnectionType);
    }
    catch(ex)
    {
    alert(ex);
    }

  2. #2
    Registered User
    Join Date
    Feb 2009
    Posts
    21

    Re: How to get the connection type via SysInfo API?

    'ConnectionStatus' key requires a call to ISysInfo.GetNotification() API.
    Supported system attributes (entities and keys) has a list of which entity/key is supported by which API.

Similar Threads

  1. FPC Bench, Database API and a lot more...
    By sblantipodi in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2008-03-23, 01:47
  2. Network connection type
    By onlyabhi in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-10-24, 09:07
  3. Code Signing Certificates with File Connection Api
    By Rozik in forum Mobile Java General
    Replies: 1
    Last Post: 2007-05-30, 22:26
  4. D211 with RH7.3
    By fiveam in forum Multimodecards
    Replies: 3
    Last Post: 2003-02-24, 09:06
  5. Wireless Messaging API for 3650 - opening sms connection
    By jezovec in forum Mobile Java General
    Replies: 1
    Last Post: 2002-12-04, 11:49

Posting Permissions

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