Java tutorial
//package com.java2s; public class Main { public static String getUserAgent() { StringBuilder model = new StringBuilder(android.os.Build.MODEL); if (model.toString().startsWith("\"")) { model.deleteCharAt(0); } if (model.toString().endsWith("\"")) { model.deleteCharAt(model.length() - 1); } return model.toString(); } }