Share via


How to get the device name of Android Device

Question

Monday, October 17, 2016 2:52 PM

Please help me for my little project.

I am new to android development and I want to get the android device name using Xamarin.

I need to bind the name of the device to get the list of data from the database to show in the device at runtime.

Thank you very much and hope to received response.

All replies (4)

Monday, October 17, 2016 3:43 PM

Can this be useful?

stackoverflow.com/questions/7071281/get-android-device-name


Tuesday, October 18, 2016 3:18 PM

@AlessandroCaliaro said: Can this be useful?

stackoverflow.com/questions/7071281/get-android-device-name

Is there something like this that can be used in Xamarin.Forms with C#?


Tuesday, October 18, 2016 4:29 PM

yes. use this code with a DependencyService

https://developer.xamarin.com/guides/xamarin-forms/dependency-service/


Tuesday, July 10, 2018 9:11 PM

Yeah, @SamJ07 Here is a full blog post about how to get a device owner's user name with Xamarin.Forms