As I can do for when I press%% of% back, it does not send me in the initial activity of the app for example (If in my webview I had open link 1,2,3,4 .. for each time I pressed the back button should return 3.2,1 ..) but direct me in the initial activity.
I'm using webview in a fragment!
here is my code:
WebView webView;
String urls="http://www.*********.com/";
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.informacion, container, false);
webView = (WebView) view.findViewById(R.id.webView);
webView.loadUrl(urls);
WebSettings webSettings = webView.getSettings();
webSettings.setJavaScriptEnabled(true);
webView.setWebViewClient(new WebViewClient());
return view;