• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Dynamically change context menu, NOOB here!!

maktsak

Lurker
Dec 27, 2011
1
0
I am new in android developing and i'm facing a problem in changing dynamically the context menu options.

I have a listview and i would like the context menu options change depending on which listitem i long-pressed. I just dont know how to dynamically change the context menu options.

As far as i know there is the onPrepareOptionMenu() function...but i dont know how to use it


Any help would be appreciated
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones