Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.net.Uri;

public class Main {
    /**
     * Get an account name
     *
     * @param blogUrl
     * @param email
     * @return
     */
    public static String getName(String blogUrl, String email) {
        Uri uri = Uri.parse(blogUrl);
        return email + " (" + uri.getHost() + ")";
    }
}