I want to make an app with a map view in it, and i want to ad 2 buttons to the action bar!
So i tried everything from the developer pages guied and nothing works...
without any affect..
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater menuInflater = getMenuInflater();
menuInflater.inflate(R.menu.main, menu);
// Calling super after populating the menu is necessary here to ensure that the
// action bar helpers have a chance to handle this event.
return super.onCreateOptionsMenu(menu);
}
xml :
xml :