Advice needed with floating context menu in a Customised ListView
<p>I am building an application, which basically supports a customised list view.
One of the  activities has two edit text fields , one for title and the other one for some text which the user will enter.On saving,the title will be displayed in the customised list view.
The Items in the List are added dynamically,as it is linked to database.
Also,the title when long clicked should show a floating context menu.
I browsed some sites for this, one showed how to make a floating context menu for a list view
In the  onContextItemSelected(MenuItem item) the coder used </p>

<p>" String[] names = getResources().getStringArray(R.array.names); " 
to link the floating menu with all of the list items.
but here he actually stored the names of the items in a string.
But ,since my list is dynamic, how should I get the names of the titles for inflating the floating menu with each title.
Please help me with this.I'd appreciate the effort.</p>
