Example usage for android.webkit URLUtil isNetworkUrl

List of usage examples for android.webkit URLUtil isNetworkUrl

Introduction

In this page you can find the example usage for android.webkit URLUtil isNetworkUrl.

Prototype

public static boolean isNetworkUrl(String url) 

Source Link

Usage

From source file:android.webkit.LoadListener.java

/**
 * Sets the current URL associated with this load.
 *//* ww w.  j a va 2 s  .c o m*/
void setUrl(String url) {
    if (url != null) {
        if (URLUtil.isDataUrl(url)) {
            // Don't strip anchor as that is a valid part of the URL
            mUrl = url;
        } else {
            mUrl = URLUtil.stripAnchor(url);
        }
        mUri = null;
        if (URLUtil.isNetworkUrl(mUrl)) {
            try {
                mUri = new WebAddress(mUrl);
            } catch (ParseException e) {
                e.printStackTrace();
            }
        }
    }
}