Is there a way to get information from the web browser in Android? -
i create charity application if users press 'donate' button, browser open link 3rd-party crowdfunding website donate amount project (or choose exit app or whatever!). how know amount have donated (or not!) browser data can used member's stats, etc.
yes possible. can use webview
button button = (button) findviewbyid(r.id.b); button.setonclicklistener(new view.onclicklister() @overide public void onclick(view v) { webview mwebview=(webview)_findviewbyid(r.id.webview); mwebview .loadurl("url third party app"); setcontentview(mwebview ); });
or can use intent
button button = (button) findviewbyid(r.id.b); button.setonclicklistener(new view.onclicklister() @overide public void onclick(view v) { wstring url = "http://www.example.com"; intent = new intent(intent.action_view); i.setdata(uri.parse(url)); startactivity(i); });
Comments
Post a Comment