If you're willing to go the JNI route, here are some pointers:

http://man7.org/linux/man-pages/man3/getifaddrs.3.html
https://github.com/kmackay/android-ifaddrs
https://stackoverflow.com/questions/4951257/using-c-code-to-get-same-info-as-ifconfig

2014-08-21 11:37 GMT+01:00 Mihai Badea <[email protected]>:
> Thank you. But I was looking for a solution to work on 3.1 - 4.4 (Where
> Ethernet is).
> At the moment 100% of the users of my app are on 2.3 - 4.4 and I got a few
> "1 star" for lacking Ethernet support.
> I don't foresee many people switching to Android L soon to use this API :-)
>
> On Friday, August 15, 2014 2:16:49 AM UTC+1, Robert Greenwalt wrote:
>>
>> There will be API to access this in the next release.  I think even the
>> previous release from Google I/O may have had API in the ConnectivityManager
>> to access a LinkProperties object for each network (or the current default
>> network) which would contain this information.
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to