When an Android device connects to a wifi AP, it identifies itself with a name like:
android_cc1dec12345e6054
How can that string be obtained from within an Andr
Try this:
Class> c = Class.forName("android.os.SystemProperties");
Method get = c.getMethod("get", String.class, String.class);
String serialNumber = (String) get.invoke(c, "net.hostname", "Error");
if (serialNumber.equals("Error")) {
serialNumber = (String) get.invoke(c, "net.hostname", "Error");
}