In my app I have a tab and a webview in, but when I clic on a link, the browser it's open.
I want to stay in my app, I have read this answer: android webview stay in app
But I can't do it. I don't know what exactly I must do .
Here is my EventsFragments.java :
public class EventsFragment extends Fragment
{
WebView myWebView;
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState)
{
View view = inflater.inflate(R.layout.tabone, container, false);
WebView myWebView = (WebView) view.findViewById(R.id.webview);
myWebView.loadUrl("http://www.google.fr");
return view;
}
}
Thanks in advance.