Caner Caner - 1 month ago 6
Android Question

How can I get the device name in Android?

How can I get the device name programmatically in Android?

Answer

To display the device name/model in android use:

TextView tv1 = (TextView) findViewById(R.id.tv1);
String str = android.os.Build.MODEL;
tv1.setText(str);

Link to Android Build Class