You need to launch the default browser with your donation URL. 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 - Your donation URL

On Oct 31, 12:42 pm, Raziel23x <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote:
> > > 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
> > > this Donation Menu item 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 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;
> > >        }[/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 [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%2Bunsubs
> > >  [email protected]>
> > > 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to