Java tutorial
//package com.java2s; //License from project: Apache License import android.os.Build; public class Main { private static final String SAMSUNG_S3_DEVICE_COMMON_PREFIX = "d2"; public static boolean isSamsungGalaxyS3() { return Build.DEVICE.startsWith(SAMSUNG_S3_DEVICE_COMMON_PREFIX); } }