Git Product home page Git Product logo

Comments (5)

serggl avatar serggl commented on September 12, 2024

I don't remember this actually :) would you mind to try to change it to just a Context and do a pull request if it will work?

from android-inapp-billing-v3.

serggl avatar serggl commented on September 12, 2024

Now I see. Activity context is used to initiate purchase flow, no other contexts are valid for this. So maybe you better implement a handler as a singleton and put it under application scope?

from android-inapp-billing-v3.

moflo avatar moflo commented on September 12, 2024

Yes, the work-around we used was to initialize in the MainActivity and then store a reference in the application singleton. But as Google is moving away from Activity in favor of Fragments, we might have trouble in the future. Anyway, thanks for the good library!

On Sep 9, 2014, at 12:13 PM, "Sergey A. Glukhov" [email protected] wrote:

Now I see. Activity context is used to initiate purchase flow, no other contexts are valid for this. So maybe you better implement a handler as a singleton and put it under application scope?


Reply to this email directly or view it on GitHub.

from android-inapp-billing-v3.

serggl avatar serggl commented on September 12, 2024

But this is not a solution if your MainActivity disposes at some time (by the OS rules), right?
So maybe it is a better solution to change your pattern?

from android-inapp-billing-v3.

moflo avatar moflo commented on September 12, 2024

Thanks, but our pattern is to use the Application singleton because of this reason.

On Oct 15, 2014, at 10:09 PM, Sergey A. Glukhov [email protected] wrote:

But this is not a solution if your MainActivity disposes at some time (by the OS rules), right?
So maybe it is a better solution to change your pattern?


Reply to this email directly or view it on GitHub.

from android-inapp-billing-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.