android - Setting Link To Open In App -


i developing android application uses webview, , open link in app. problem have come across each of our customers use different url , set via preference in android application. from, understand have set link in android manifest. still achievable have link open in application?

in order open link in app make sure have activity has webview on layout. then, in activity this:

webview webview = (webview) findviewbyid(r.id.your_web_view); webview.loadurl("http://your.url/"); 

just read user preference stores url before calling loadurl() , you're set


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -