how to get menu handler

by sjia » Tue, 16 Dec 2008 06:28:18 GMT

Sponsored Links
 I'd like to disable a menu item in void onCreate(Bundle
savedInstanceState).  Is there a system call to get the menu handler?


how to get menu handler

by Dmaxi » Wed, 17 Dec 2008 07:19:48 GMT

 You can get the Options Menu instance for your activity from
onCreateOptionsMenu(Menu) method which is called only once when it is
initialized or from onPrepareOptionsMenu(Menu) method which is called
every time the menu button pressed.
See #onCreateOptionsMenu(android.view.Menu)
and #onPrepareOptionsMenu(android.view.Menu)


Sponsored Links

Other Threads

1. Open files with default software

I've got this problem:
I want to open a file with default binded software ( like .doc file
with Office Word  or .mp3 file with Media Player ) in my program, how
can I do that ? Thank you.

2. create table and lots of inserts


The app i'm currently developing needs a database with lots of fields
in it. What's the best way of creating and populating this database
the first time? Do i really need to write all thos SQL INSERT

I have a database with the data i need.


3. Getting ListView position in touch mode

4. Hold http request from webview

5. Camera postBuffer error message help

6. Saving

7. Installing the android SDK on my new PC