So Something Along these Lines will work? private static final int MENU_DONATE = 0;
/* 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: Intent myIntent = new Intent(Intent.VIEW_ACTION, Uri.parse("https:// www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A2L64XS44ZQ9S")); myweb.loadUrl(""); return true; } return true; } On Oct 31, 3:44 pm, Kumar Bibek <coomar....@gmail.com> wrote: > You need to launch the default browser with yourdonationURL. After > that, the browser app should take care of the further actions. > > To launch the Browser, you need to use a VIEW intent like this. > > http://developer.android.com/guide/appendix/g-app-intents.html > > Action - View > Uri - YourdonationURL > > On Oct 31, 12:42 pm, Raziel23x <raziel...@gmail.com> wrote: > > > Can you explain more I am still new to this mixture I have not worked > > with browser activity > > > On Oct 30, 11:26 am, Kumar Bibek <coomar....@gmail.com> wrote: > > > > You need to have Internet permission. Instead of using thewebview, you > > > are > > > better off using the Bowser activity for this. > > > > On Sat, Oct 30, 2010 at 11:23 PM, Raziel23x <raziel...@gmail.com> wrote: > > > > I am having trouble creating a donatemenubutton but I am having > > > > trouble > > > > > I tried doing it as a webview but my application is the use of the > > > > listview > > > > thisDonationMenuitem is the only item that requires the internet > > > > permission everything else is internal workings. > > > > [CODE]private static final int MENU_DONATE = 0;[/CODE] > > > > [CODE] > > > > /* Creates themenuitems */ > > > > public boolean onCreateOptionsMenu(Menumenu) > > > > { > > > > 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; > > > > }[/CODE] > > > > > but it is not working and giving me errors what do i need to fix this > > > > and get it to work correctly > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to android-developers@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs > > > > cr...@googlegroups.com> > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > > Kumar Bibekhttp://techdroid.kbeanie.comhttp://www.kbeanie.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en