0

these is how to give a string as argument

String link ="http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf"; webview.loadUrl(link);

but how to give an "URL" variable to load its content to webview

I am new to android please help.

1 Answer 1

1

Use yourURL.toString() to get String representation of your URL object.

URL link = yourUrl;

webview.loadUrl(yourUrl.toString());

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.