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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -