Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static String getWifiSsid(String wifiInfo) { if (TextUtils.isEmpty(wifiInfo)) { return "No Wifi Name"; } int len = wifiInfo.length(); if (wifiInfo.startsWith("\"") && wifiInfo.endsWith("\"")) { wifiInfo = wifiInfo.substring(1, len - 1); } return wifiInfo; } }