android - Using a button to link a website -
i want users click on button, displays website on app, not on browser, on new xml. also, website have files, want them able view on app , don't have download them? how can this, please help!
if have activity webview, can start calling startactivity
:
intent activitywithwebview = new intent(this, webviewactivity.class); bundle b = new bundle(); b.putstring("url", "http://www.stackoverflow.com"); intent.putextras(b); startactivity(intent); finish();
then, in next activity, can url , feed webview:
bundle b = getintent().getextras(); string url = b.getstring("url");
android file button hyperlink download
No comments:
Post a Comment