How to set Backpressed botton in android studio
let us know how to set backpressed in android application
you can set in WebView and other online application.
code is here.
@Override
public void onBackPressed() {
WebView webView = findViewById(R.id.webv);
if (webView.canGoBack()){
webView.goBack();
}
else {
super.onBackPressed();
}

Comments
Post a Comment