public boolean onCreateOptionsMenu(Menu menu)
{
super.onCreateOptionsMenu(menu);
MenuItem settings = menu.add(Menu.NONE, ID_SETTINGS, Menu.NONE, "Settings");
settings.setIcon(android.R.drawable.ic_menu_preferences);
settings.setOnMenuItemClickListener(new OnMenuItemClickListener()
{
public boolean onMenuItemClick(MenuItem item)
{
Intent i = new Intent();
i.setClass(getApplicationContext(), EditPreferencesActivity.class);
MainActivity.this.startActivity(i);
return true;
}
});
MenuItem about = menu.add(Menu.NONE, Menu.NONE, Menu.NONE, "About");
about.setIcon(android.R.drawable.ic_menu_info_details);
about.setOnMenuItemClickListener(new OnMenuItemClickListener()
{
public boolean onMenuItemClick(MenuItem item)
{
MainActivity.this.startActivity(AboutActivity.INTENT);