Code example for MalformedURLException

Methods: toString

0
            final URL iconUrl = new URL(orig.getProtocol(), orig.getHost(), orig.getPort(),
                    "/favicon.ico"); 
 
            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 = ProgressDialog.show(ChannelAdd.this, "Downloading", "Accessing XML Feed...", true,
                false); 
 
        final Thread t = new Thread() {
            @Override 
            public void run() { 
                try { 
                    final PostListParser parser = new PostListParser(getContentResolver());