"Additional information regarding the creation of the context menu. For example, AdapterViews use
this to pass the exact item position within the adapter that initiated the context menu."
padde wrote:Why onCreateContextMenu? If you want to react on longclicks inside a listview you should go for an
anarche wrote:Include select ("_id", ...) in your select statement
padde wrote:The onCreateContextMenu function provides you with an ContextMenuInfo object.. from this object you can
get the ID... you dont need to pass it manually .. you get it passed from the OS.
padde wrote:Should the be the _id.. if its not its the position in the list and then you can use the
"getItemIdAtPosition" method of your ListView.
Users browsing this forum: No registered users and 7 guests