Get(Set) DeviceName on Andoird OS

Good day everyone,

currently, I'm struggling with getting a proper device name from out TC56/51 or any other Android Zebra Device.

I'm using the System.Environment.MachineName Property within our Xamarin Forms app but it always gives me "localhost" as Value, and I don't see any way to change it. Did anyone also come across this problem? Or is there a better solution to it? What need is a Name variable of the device, that can be set to a specific name/string.

maybe someone could help me here



Alan rechdan
Try this:  Xamarin

Try this:  Xamarin.Essentials.DeviceInfo.Name

Vote up!
Vote down!

Points: 0

You voted ‘up’