@Override
  public void onBackPressed() {

    super.onBackPressed();

    overridePendingTransition(R.anim.pull_in_left, R.anim.push_out_right);
  }
  @Override
  protected void onResume() {

    super.onResume();

    Context context = getApplicationContext();

    com.facebook.AppEventsLogger.activateApp(context, "316673561850081");
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    getWindow().requestFeature(Window.FEATURE_PROGRESS);

    setContentView(R.layout.activity_apply_webview);

    if (savedInstanceState == null) {

      extras = getIntent().getExtras();

      if (extras == null) {

        courseAreaTitle = null;
        courseAreaRef = null;

      } else {

        courseAreaTitle = extras.getString("courseAreaTitle");
        courseAreaRef = extras.getString("courseAreaReference");
      }

    } else {

      courseAreaTitle = (String) savedInstanceState.getSerializable("courseAreaTitle");
      courseAreaRef = (String) savedInstanceState.getSerializable("courseAreaReference");
    }

    /*
     *  Activity Title
     * */

    // Add custom font, color & size to ActionBar title
    SpannableString applyTitle = new SpannableString("Apply : " + courseAreaTitle);

    applyTitle.setSpan(
        new TypefaceSpan(this, "Fairview_SmallCaps.otf"),
        0,
        applyTitle.length(),
        Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
    applyTitle.setSpan(new ForegroundColorSpan(Color.WHITE), 0, applyTitle.length(), 0);
    applyTitle.setSpan(
        new RelativeSizeSpan(
            getApplicationContext().getResources().getDimension(R.dimen.actionbar_title_font_size)),
        0,
        applyTitle.length(),
        Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);

    this.setTitle(applyTitle);

    // Build url add prepare webview for Online Services
    String applyUrl =
        getResources().getText(R.string.iwcollege_online_services_url)
            + "app_external.aspx?id="
            + courseAreaRef
            + "&source=ANDROIDAPP";
    WebView applyWebView = (WebView) findViewById(R.id.applyWebView);
    applyWebView.getSettings().setJavaScriptEnabled(true);
    applyWebView.getSettings().setBuiltInZoomControls(true);
    applyWebView.loadUrl(applyUrl);
    applyWebView.setWebChromeClient(new WebChromeClient());
    applyWebView.setWebViewClient(new WebViewClient());
  }