Example #1
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Log.i("TabWidget", "onCreate");
    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
    setContentView(R.layout.tabs);
    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
    pg = (ProgressBar) findViewById(R.id.title_progress_bar);
    titleTextBox = (TextView) findViewById(R.id.title_msg_box);

    account = getIntent().getExtras().getParcelable("account");
    accountId = account.getId();
    Log.i("TabWidget", "Account=" + account);

    setupTabs();

    tabHost.setCurrentTab(0); // Home tab, tabs start at 0

    new InitialSyncTask(this).execute(accountId);
  }