Android InAppBilling - what to do when user presses the buy button?

Posted by GeekedOut on Stack Overflow See other posts from Stack Overflow or by GeekedOut
Published on 2012-06-19T11:08:48Z Indexed on 2012/06/26 3:16 UTC
Read the original article Hit count: 269

Filed under:

I set up the "Dungeons" InAppBilling example locally and I am ready to try it out, but I am a bit confused. I have a button like this:

            Button donate = (Button)findViewById(R.id.donate);     
            donate.setOnClickListener(new Button.OnClickListener() 
            {  
               public void onClick(View v) 
               {      
                              // But what do I do here? :)
               }
            });

And when it is called, what do I need to do to actually go to the pay screen on android store?

Thanks!

© Stack Overflow or respective owner

Related posts about android