Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;
    }
}