Code example for MalformedURLException

Methods: toString

            final URL iconUrl = new URL(orig.getProtocol(), orig.getHost(), orig.getPort(),
            return iconUrl;
        } catch (final MalformedURLException e) {
            Log.d(TAG, "Exception caught: " + e.toString());
            return null; 
    private void addChannel() { 
        final String url = mUrlText.getText().toString();
        mBusy =, "Downloading", "Accessing XML Feed...", true,
        final Thread t = new Thread() {
            public void run() { 
                try { 
Connect your IDE to all the code out there  Get Codota for Java