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
Post a Comment