@Override protected void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); String title = this.getResources().getString(R.string.project_name) + " " + ProjectManager.getInstance().getCurrentProject().getName(); activityHelper.setupActionBar(false, title); activityHelper.addActionButton( R.id.btn_action_add_button, R.drawable.ic_plus_black, R.string.add, new View.OnClickListener() { public void onClick(View v) { showDialog(DIALOG_NEW_SPRITE); } }, false); activityHelper.addActionButton( R.id.btn_action_play, R.drawable.ic_play_black, R.string.start, new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(ProjectActivity.this, PreStageActivity.class); startActivityForResult(intent, PreStageActivity.REQUEST_RESOURCES_INIT); } }, false); }
@Override protected void onPostCreate(Bundle savedInstanceState) { getSherlock().dispatchPostCreate(savedInstanceState); super.onPostCreate(savedInstanceState); }
/* * (non-Javadoc) * @see android.app.Activity#onPostCreate(android.os.Bundle) */ @Override public void onPostCreate(Bundle savedInstanceState) { super.onPostCreate(savedInstanceState); mHelper.onPostCreate(savedInstanceState); }