void reload() {
//begin-snippet-1

// The in the Activity which renders the ActionBar
Entity entity = Entity.newInstance("http://getsocialize.com", "Socialize");

// Setup a listener to retain a reference
MyActionBarListener listener = new MyActionBarListener();

// Use the listener when you show the action bar
// The "this" argument refers to the current Activity
ActionBarUtils.showActionBar(this, R.layout.actionbar, entity, null, listener);

// Later (After the action bar has loaded!), you can reference the view to refresh
ActionBarView view = listener.getActionBarView();

if (view != null) {
	Entity newEntity = new Entity(); // This would be your new entity
	view.setEntity(newEntity);
	view.refresh();
}	
		
//end-snippet-1
	}
void reload() {



Entity entity = Entity.newInstance("http:


MyActionBarListener listener = new MyActionBarListener();



ActionBarUtils.showActionBar(this, R.layout.actionbar, entity, null, listener);


ActionBarView view = listener.getActionBarView();

if (view != null) {
	Entity newEntity = new Entity(); 
	view.setEntity(newEntity);
	view.refresh();
}	
		

	}
void reload ( ) { //begin-snippet-1 // The in the Activity which renders the ActionBar Entity entity = Entity . newInstance ( "http://getsocialize.com" , "Socialize" ) ; // Setup a listener to retain a reference MyActionBarListener listener = new MyActionBarListener ( ) ; // Use the listener when you show the action bar // The "this" argument refers to the current Activity ActionBarUtils . showActionBar ( this , R . layout . actionbar , entity , null , listener ) ; // Later (After the action bar has loaded!), you can reference the view to refresh ActionBarView view = listener . getActionBarView ( ) ; if ( view != null ) { Entity newEntity = new Entity ( ) ; // This would be your new entity view . setEntity ( newEntity ) ; view . refresh ( ) ; } //end-snippet-1 }
end-snippet-0
end - snippet - 0