I am having trouble creating a donate menu button but I am having trouble
I tried doing it as a webview but my application is the use of the listview
but it is not working and giving me errors what do i need to fix this and get it to work correctly
I tried doing it as a webview but my application is the use of the listview
Code:
private static final int MENU_DONATE = 0;
Code:
/* Creates the menu items */
public boolean onCreateOptionsMenu(Menu menu)
{
menu.add(0, MENU_DONATE, 0, "Home");
return true;
}
/* Handles item selections */
@Override
public boolean onOptionsItemSelected(MenuItem item)
{
switch (item.getItemId()) {
case MENU_DONATE:
myweb.loadUrl("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A2L64XS44ZQ9S");
return true;
}
return true;
}
but it is not working and giving me errors what do i need to fix this and get it to work correctly