@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_single_fragment);

    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    MMAdView ad = AdsUtils.loadAdIfNeeded(this);
    if (ad != null) {
      adRefreshHandler = new RefreshHandler(ad);
    }
    if (savedInstanceState == null) {
      Bundle arguments = new Bundle();
      final WiFiNetwork wiFiNetwork =
          (WiFiNetwork) getIntent().getParcelableExtra(NetworkFragment.NETWORK_ID);
      arguments.putParcelable(NetworkFragment.NETWORK_ID, wiFiNetwork);
      setTitle(wiFiNetwork.getSsidName());
      NetworkFragment fragment = new NetworkFragment();
      fragment.setArguments(arguments);
      getSupportFragmentManager().beginTransaction().add(R.id.keygen_fragment, fragment).commit();
    }
  }