User Tag List

Results 1 to 6 of 6

Thread: Is Online?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Is Online?

    Is there a way to check if the phone is connected to the internet?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    You could try to get some data from the internet with the GET object, and see if it receives anything?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Yes I guess could.. but I was expecting to see a Is Connected condition somewhere. Having to use the Get object in that way doesn't seem like an optimal way
    But thanks for the answer, I guess I'll have to use this method then.

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Just GET google.com or something you know will always be up, and if it returns "" then you're offline, otherwise you're on!

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    The problem with this solution is that I believe the app is hanging while Pending for a result, meaning I cannot test to check if it retrieved something, if it is still searching for it. Am I right here? I am not able to test on a real device yet because the Apple registration site seems to have technical difficulties..

  6. #6
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2009
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Popcorn View Post
    The problem with this solution is that I believe the app is hanging while Pending for a result, meaning I cannot test to check if it retrieved something, if it is still searching for it. Am I right here? I am not able to test on a real device yet because the Apple registration site seems to have technical difficulties..
    You could use some sort of timer to start alongside the query and then check when that equals to 10 for confirmation of having no connection.

    Most internet connections can respond to a simple GET data retrieval much quicker than 10 seconds.

Similar Threads

  1. a online
    By Conman in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th May 2009, 07:49 PM
  2. online
    By Stephen38 in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 4th August 2008, 08:52 PM
  3. Online
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th March 2008, 09:36 PM
  4. Online
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th May 2007, 11:21 PM

Posting Permissions

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