Example #1
0
  @Override
  public void onCreate(Bundle icicle) {
    super.onCreate(icicle);

    CatLog.d(LOGTAG, "onCreate+");
    // Remove the default title, customized one is used.
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    // Set the layout for this activity.
    setContentView(R.layout.stk_menu_list);

    mTitleTextView = (TextView) findViewById(R.id.title_text);
    mTitleIconView = (ImageView) findViewById(R.id.title_icon);
    mProgressView = (ProgressBar) findViewById(R.id.progress_bar);
    getListView().setOnCreateContextMenuListener(mOnCreateContextMenuListener);
    if (!mMenuInstance.handleOnCreate(getBaseContext(), getIntent(), true)) {
      CatLog.d(LOGTAG, "finish!");
      finish();
    }

    /*
    // Change content background color to support theme mananger.
    if (FeatureOption.MTK_THEMEMANAGER_APP) {
        View contentView = this.findViewById(android.R.id.content);
        contentView.setThemeContentBgColor(Color.TRANSPARENT);
    }
    */
    registerReceiver(mSIMStateChangeReceiver, mSIMStateChangeFilter);
    CatLog.d(LOGTAG, "onCreate-");
  }