1. Are you ready for the Galaxy S20? Here is everything we know so far!

Dynamically change context menu, NOOB here!!

Discussion in 'Android Development' started by maktsak, Dec 27, 2011.

  1. maktsak

    maktsak Lurker
    Thread Starter

    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
     


Loading...

Share This Page

Loading...