×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4

    [Flash Lite 3.0 - Nokia 5800xm] Connectivity status

    Hi, i´ve tryed a lot of ways to get the connectivity status, i know i must use the System Information Service, and get the ConnectionStatus, but so many tryouts but nothing so far, the maximum i got was a ReturnValue with some numbers not specifyed... but i cant get the notification, does anyone know how to get the connection status notification?? Thanks a lot

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: [Flash Lite 3.0 - Nokia 5800xm] Connectivity status

    Quote Originally Posted by andrecavallari View Post
    Hi, i´ve tryed a lot of ways to get the connectivity status, i know i must use the System Information Service, and get the ConnectionStatus, but so many tryouts but nothing so far, the maximum i got was a ReturnValue with some numbers not specifyed... but i cant get the notification, does anyone know how to get the connection status notification?? Thanks a lot
    This code is working fine :
    Code:
    import com.nokia.lib.Service;
    var sysInfo = new Service("Service.SysInfo", "ISysInfo");
    var inParams = {Entity:"Connectivity", Key:"ConnectionStatus"};
    sysInfo.GetNotification(inParams,onNotify);
    function onNotify(transactionID:Number, eventID:String, outParam:Object) {
      var systemData = outParam.ReturnValue;
    _root._status.text = systemData.ConnectionStatus + " , " + systemData.ConnectionType + " , " + systemData.IAPConnectionName;
    //you need a dynamic text on stage with name _status.
    }
    For more returned values take a look at documentation, it state few other values which return e.g systemData.ConnectionStatus contains "1" for connected & "0" if connection is disconnected. Moreover, few more things which u must know are :
    1- Flash lite 3 get paused when send to background ,so, you will not get a notification of connection status if ur app is in background. But Flash Lite 3.1 supports running these functions in backgroung. (see flash lite library @ forum nokia for details)
    2- By notification, it doesnt mean that a pop-up is displayed but it only means that the function onNotify is called when u get ConnectionStatus change if flash lite is in running state.
    Hope it helps..

    Best Regards,
    SajiSoft

Similar Threads

  1. How to install Flash lite 2.1 stand alone player on 5800XM
    By KevinBoyd in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2010-01-11, 09:44
  2. Problem with Flash Lite & Nokia - Flash Lite does not open in MMS
    By muggzy in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2008-12-17, 17:13
  3. Getting Flash Lite installed on Flash Lite enabled but not pre-built devices!
    By sirbijan in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2008-06-04, 07:39
  4. Flash Lite eSeminar: Predictive Mobile Search comes to Flash Lite
    By biskero in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2008-04-17, 14:03
  5. Flash lite 2.0 ignores http status 404
    By sivaannam in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2008-02-26, 08:48

Posting Permissions

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