FAQs
Search
Recent Topics
Flagged Topics
Hot Topics
Best Topics
Register / Login
Win a copy of
Securing DevOps
this week in the
Security
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Liutauras Vilda
Bear Bibeault
Devaka Cooray
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Campbell Ritchie
Henry Wong
Saloon Keepers:
Tim Moores
Ron McLeod
salvin francis
Stephan van Hulst
Vijitha Kumara
Bartenders:
Tim Holloway
Carey Brown
Frits Walraven
Forum:
Android
CheckBox and Menu Problem
Hardik Trivedi
Ranch Hand
Posts: 252
posted 7 years ago
Hi,
I am facing one problem.I want to add and remove items dynamically in option menu.
The action will take place when user checks or unchecks the checkbox. The things happens but only first time then after somehow menu's are not updated.
Any help ??
Ankit Garg
Sheriff
Posts: 9610
37
I like...
posted 7 years ago
You can use the
onPrepareOptionsMenu
method for this which is called every time the options menu is displayed...
SCJP 6 | SCWCD 5 |
Javaranch SCJP FAQ
|
SCWCD Links
Hardik Trivedi
Ranch Hand
Posts: 252
posted 7 years ago
hm.. onPrepareOptionsMenu works.
Thank you.
Post Reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
I Broke Eclipse!
disabling right click using jquery
Enabling LTPA in WAS4.0.1
gmail like custom "select all" control
PopupMenu In JTabbedPane
More...