Code example for SubMenu

Methods: add

0
	public boolean onCreateOptionsMenu(Menu menu)
	{ 
		// Inflate the menu; this adds items to the action bar if it is present. 
		SubMenu file=menu.addSubMenu("Îļþ");
		SubMenu edit=menu.addSubMenu("±à¼­");
		file.add(0,Item1,0,"н¨");
		file.add(0,Item2,0,"±£´æ");
		 
		return true; 
	} 
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item)
	{ 
		// TODO Auto-generated method stub 
		switch(item.getItemId())
		{ 
		case Item1:
			super.setTitle("djdjdjjd"); 
			break; 
		case Item2: