Пример #1
0
  /* (non-Javadoc)
   * @see android.app.Activity#onCreateOptionsMenu(android.view.Menu)
   */
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    super.onCreateOptionsMenu(menu);

    if (optManager != null) optManager.createMenu(menu, true);
    return true;
  }
Пример #2
0
 /*
  * Create Context Menu (Long-press menu)
  */
 @Override
 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
   super.onCreateContextMenu(menu, v, menuInfo);
   optManager.createMenu(menu, true);
 }