Code example for Fragment

Methods: getActivitygetArgumentsonCreate

0
    return new SimpleWebViewFragment.2(this);
  } 
 
  public void onCreate(Bundle paramBundle)
  { 
    super.onCreate(paramBundle);
    String str1 = getArguments().getString("com.instagram.android.fragment.SimpleWebViewFragment.ARGUMENT_URL");
    String str2 = null;
    if (getArguments().getBoolean("com.instagram.android.fragment.SimpleWebViewFragment.ARGUMENT_LOAD_SAME_HOST"))
      str2 = Uri.parse(str1).getHost();
    this.mWebView = new WebView(getActivity());
    this.mWebView.getSettings().setJavaScriptEnabled(true);
    String str3 = str2;
    this.mWebView.setWebViewClient(new SimpleWebViewFragment.1(this, str3));
    this.mWebView.loadUrl(str1);
  } 
 
  public View onCreateView(LayoutInflater paramLayoutInflater, ViewGroup paramViewGroup, Bundle paramBundle)
  { 
    return this.mWebView;
Connect your IDE to all the code out there  Get Codota for Java