I want to retrieve the IP address(es) assigned to the ethernet- (not WiFi) interface of my Android tablet. How can I do this programmatically? I only stumble upon solutions for WiFi and some other making assumptions about the name of the enterface, i.e. 'eth0' or such. I don't feel this is good enough. How can I know the type of the interface and get its assigned IP's?
I'd rather do it programmatically in code, without scripts, reflection or assumptions. Is there such a way?
I am on API min-level 19.