I’m developing an app that uses zeroconf (bonjour) to discover devices – so I need to give each android device some kind of name (not just a bunch of numbers and letters, but something meaningful like “Alex’s Device”). In iOS it can be easily done – is this possible in android?
Share
There can be many accounts linked to the device. You can use the AccountManager to get them. For example, emails on google accounts:
Alternatively, you can use android.os.Build.MODEL or similar.