Java tutorial
//package com.java2s; import android.os.Build; import android.text.TextUtils; public class Main { /** portrait degree:90 */ private static final int PORTRAIT_DEGREE_90 = 90; /** portrait degree:270 */ private static final int PORTRAIT_DEGREE_270 = 270; public static int getPortraitDegree() { int degree = PORTRAIT_DEGREE_90; if (TextUtils.equals("i700v", Build.MODEL) || TextUtils.equals("A862W", Build.MODEL)) { degree = PORTRAIT_DEGREE_270; } return degree; } }