Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 84A3ADA3F for ; Thu, 1 Nov 2012 10:55:16 +0000 (UTC) Received: (qmail 34711 invoked by uid 500); 1 Nov 2012 10:55:16 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 34448 invoked by uid 500); 1 Nov 2012 10:55:15 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 34377 invoked by uid 500); 1 Nov 2012 10:55:13 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 34340 invoked by uid 99); 1 Nov 2012 10:55:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 10:55:12 +0000 Date: Thu, 1 Nov 2012 10:55:12 +0000 (UTC) From: "Remzi Cavdar (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1185584315.55442.1351767312437.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (CB-1795) onCreateOptionsMenu in PhoneGap 2.2.0 Release Candidate 2 isn't working anymore MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Remzi Cavdar created CB-1795: -------------------------------- Summary: onCreateOptionsMenu in PhoneGap 2.2.0 Release Candidate 2 isn't working anymore Key: CB-1795 URL: https://issues.apache.org/jira/browse/CB-1795 Project: Apache Cordova Issue Type: Bug Components: Android Affects Versions: 2.2.0 Environment: Samsung Galaxy S2 with Android 4.0.4 About my device: my device has stock Android, but it's rooted. Reporter: Remzi Cavdar Assignee: Joe Bowser Fix For: 2.2.0, 2.3.0 The menu doesn't show anymore. This is my code: package com.test.test.project; import android.os.Bundle; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import android.view.WindowManager; import org.apache.cordova.*; public class MainActivity extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.loadUrl("file:///android_asset/www/index.html"); getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); } @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.close: finish (); break; } return true; } } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira