Code example for DialogFragment

Methods: onViewCreated

0
        } 
    } 
 
    @Override 
    public void onViewCreated(View arg0, Bundle arg1) {
        super.onViewCreated(arg0, arg1);
        //load the url of the oAuth login page 
        webViewOauth
                .loadUrl(twitHelper.getRequestToken().getAuthenticationURL());
        //set the web client 
        webViewOauth.setWebViewClient(new MyWebViewClient());
        //activates JavaScript (just in case) 
        WebSettings webSettings = webViewOauth.getSettings();
        webSettings.setJavaScriptEnabled(true);
    } 
 
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        //Retrieve the webview 
        View v = inflater.inflate(R.layout.fragment_oauth, container, false);