I would like to call the getHardwareAddress() method of a NetworkInterface instance in eclipse, but it says “The method getHardwareAddress() is undefined for the type NetworkInterface”.
I cant see the getHardwareAddress() method in the list of the NetworkInterface instance’s methods when i type dot after its name.
Project build target: Android 2.2
Java Runtime Environment: 6
The documentation says the getHardwareAddress() method appeared in API Level 9. Unfortunately for you, API Level 9 is supported by Android 2.3 onwards; it’s not supported by Android 2.2.