Comments (5)
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.
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.
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.
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.
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)
- java.lang.NullPointerException
- Seeking Maintainer
- How to check if user has already purchased a product ? HOT 1
- How do I Use The Consume Product Product Feature
- onSkuResponse:: product id mismatch with Product type HOT 7
- UPDATE: v5 API Upgrade Require HOT 4
- issue in saveString method
- Exception java.lang.NoSuchMethodError
- working for all users without buy anithing.
- Client is already in the process of connecting to billing service ( ERROR ) HOT 4
- getSubscriptionListingDetailsAsync not loading subscription SKU details HOT 1
- https://videa.hu/videok/film-animacio/world-trade-center.mp4-ntneqHHjcnpfM7SI
- How to get the quantity of a consume product?
- Future Support for Billing Library version 5 or newer HOT 12
- SecurityException on Android 14 HOT 1
- You don't check if the `WeakReference` is still alive. I think you should also check if the reference is not yet enqueued.
- This is old code new update required...
- Security Exception in android 14 not resolved in v2.0.3 HOT 2
- Google not support library 4.0 , how to make this?
- not work Security Exception in android 14 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-inapp-billing-v3.