Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    final static String HTTP = "http";

    public static String makeItUrl(String str) {//TODO move
        if (!str.startsWith(HTTP)) {
            if (str.contains(HTTP)) {
                str = str.substring(str.indexOf(HTTP)).replace("\"", "").replace("\\", "").replace("]", "");//1202 0304 
            } else {
                Log.e("jackUtil", "url illegal:" + str);
                str = "";
            }
        }
        return str;
    }
}