How to change function of a button from expandable menu or long press menu
<p>I'm trying to do an app for read news.</p>

<p>I have a layout and it has 5 imagebuttons and one webview. When I click a button it calls a website in webview. No problem this far but I want to develop it more.</p>

<p>I'm using these buttons like my favorites. So, (actually I'm not sure which is good) I will use expandable menu or long press menu for change functions and images of each button.
For example, 1st button for CNN news. But the user must have a chance to change his favorites. So from the expandable menu or longpress menu he must choose a site. When he chooses a site, the button's function (URL) and its image must change. But i really didnt figure out how I'd do it.</p>

<p>If I choose long press then how can I change the function (URL) of a button? The url and image must change.</p>
