2. Activity onCreate.
3. 3 Add source directly.
#Codes.........
Code1
}
................................................................
Code2
@Override
public boolean onCreateOptionsMenu (Menu menu){
menu.add(0, 0, 0, "About");
return true;
}
................................................................
Code3
@Override
public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()){
case 0:
_move();
break;
}
return super.onOptionsItemSelected(item);
................................................................
4. Finally you will get to menu in your app.
No comments:
Post a Comment