2

In Android can we get Device Name like( s2,s3 ) programmatically. I donot want to get Model number because it varies for same device.

Cœur
  • 37,241
  • 25
  • 195
  • 267
User10001
  • 1,295
  • 2
  • 18
  • 30

2 Answers2

3

Yes you indeed can: String deviceName = android.os.Build.MODEL;

Reference: https://developer.android.com/reference/android/os/Build

Cœur
  • 37,241
  • 25
  • 195
  • 267
alandarev
  • 8,349
  • 2
  • 34
  • 43
0

You can get device information from this

Model: Build.MODEL The end-user-visible name for the end product.

Manufacturer: Build.MANUFACTURER The name of the industrial design.

Board: Build.BOARD The name of the underlying board, like "goldfish".

Brand: Build.BRAND The consumer-visible brand with which the product/hardware will be associated, if any.

Serial: Build.SERIAL The serial number you can get.

it's all information of the device you can get.

Tanveer Munir
  • 1,956
  • 1
  • 12
  • 27