List of usage examples for android.os Build DEVICE
String DEVICE
To view the source code for android.os Build DEVICE.
Click Source Link
From source file:com.skytree.epubtest.BookViewActivity.java
int getRealFontSize(int fontSizeIndex) { int rs = 0;//from www . j a v a2 s .co m switch (fontSizeIndex) { case 0: rs = 24; break; case 1: rs = 27; break; case 2: rs = 30; break; case 3: rs = 34; break; case 4: rs = 37; break; default: rs = 27; } if (this.getOSVersion() >= 19) { rs = (int) ((double) rs * 0.75f); } if (Build.DEVICE.contains("maguro")) { rs = (int) ((double) rs * 0.75f); } return rs; }