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
I don't know if this helps but here I go.
From a unix shell (you can download any Terminal app in Google Play), you can get the hostname by typing
getprop net.hostname
Of course this is not what you want... but... on the other hand, here is information on how to execute a unix command from java. Maybe by combining these two you get what you're looking for.