App contains one menu item when pressed, I want the app to check if this URL is loaded, if it is then change, if its not then remain. So if pressed and its on twitter, it will change to Facebook, if its on Facebook it will change to twitter URL using the same icon. Not sure how I would write the If statement. Sorry kind of new to this so any help would be amazing.
case R.id.action_test:
myWebView.loadUrl("https://twitter.com");
if (
myWebView.loadUrl("https://facebook.com");
Aucun commentaire:
Enregistrer un commentaire