Java tutorial
//package com.java2s; import android.os.Build; import android.text.TextUtils; public class Main { private static String escapeWifiName(String wifiName) { if (TextUtils.isEmpty(wifiName)) return ""; if (Build.VERSION.SDK_INT >= 17 && wifiName.startsWith("\"") && wifiName.endsWith("\"")) { wifiName = wifiName.substring(1, wifiName.length() - 1); } return wifiName; } }