Skip to content Skip to sidebar Skip to footer

How To Find The Device Is Galaxy Note Programmatically?

I would like to find whether the given running device is Galaxy Note programmatically. How can I do this, kindly help me with a snippet to find it.

Solution 1:

android.os.Build.MODEL;

StringdeviceModel= android.os.Build.MODEL;

Solution 2:

In order to get android device name you have to add only a single line of code:

android.os.Build.MODEL;

Copy and paste the following code in your projects onCreate():

super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView tv1 = (TextView) findViewById(R.id.tv1);
String str = android.os.Build.MODEL;
tv1.setText(str);

Post a Comment for "How To Find The Device Is Galaxy Note Programmatically?"