Code example for ActionBar

Methods: setTitle

0
    public void setSelectedNavigationItem(int position) {
        bar.setSelectedNavigationItem(position);
    } 
 
    public void setTitle(int resId) {
        bar.setTitle(resId);
    } 
 
    public void setTitle(CharSequence title) {
        bar.setTitle(title);
    } 
 
    public void show() { 
        bar.show();
    } 
}