Search Unity

Androids version of iPhoneNetworkReachability

Discussion in 'Android' started by joshubinow, Sep 19, 2010.

  1. joshubinow

    joshubinow

    Joined:
    Jun 17, 2010
    Posts:
    8
    Does anyone know the equivalent of iPhoneNetworkReachability for Android?

    Cheers,
    Josh
     
  2. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    Actually, that is the equivalent. :)
    The API hasn't translated for those methods, and iPhoneSettings.internetReachability will return the internet status on Androids too.
     
  3. joshubinow

    joshubinow

    Joined:
    Jun 17, 2010
    Posts:
    8
    Thanks Erique,

    Do you know if we can assume this for all the properties associated with the iPhone classes e.g. uniqueIdentifier?
     
  4. eriQue

    eriQue

    Unity Technologies

    Joined:
    May 25, 2010
    Posts:
    595
    If I'm not mistaken all of the iPhoneSettings properties should work, with the exception .name which doesn't have an equivalent on Android.
    So, yes, uniqueIdentifier should work but may return different types of values depending on what's available (ie if the device has IEMI that will be returned, if not ANDROID_ID or wifi MAC address, and so on)
     
  5. joshubinow

    joshubinow

    Joined:
    Jun 17, 2010
    Posts:
    8
    Great - thanks Erique.