I searched a lot but i can't able to get proper answer.generally we use it as
toolbar=(Toolbar)findViewById(R.id.toolbar_to_updates);
setSupportActionBar(toolbar);
android.support.v7.app.ActionBar bar=getSupportActionBar();
bar.setDisplayHomeAsUpEnabled(true);
bar.setHomeButtonEnabled(true);
bar.setTitle("Updates");