Get device model on code block java

If you are developer and wanted to get device model name details on your apps. put code below and get device model name details.


textview.setText(Build.MANUFACTURER.concat(” “.concat(Build.MODEL)));

In this code
textview is a text layout and setText(Build.MANUFACTURER.concat is execute to set text in textview. .concat(Build.MODEL) execute to get details of model of any device.

Use in sketchwere

in sketchwere useful this code. add add source directly block and past this code.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.