- Posts: 37
- Thank you received: 1
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Submit your requests and polls about new features
Change license activation methods to take Context
IP: 192.168.0.70
12 years 9 months ago #2553
by ashughes
Change license activation methods to take Context was created by ashughes
In Global.java, all the native methods active_____ take a ContextWrapper object. Would it be possible for these to take a Context object instead? This would allow Global.init() to take a Context instead of an Activity, which would allow it to be called from either an Activity or Application class.
IP: 192.168.0.70
12 years 9 months ago - 12 years 9 months ago #2555
by radaee
Replied by radaee on topic Change license activation methods to take Context
in fact, an Activity object is only valid object to active license.
Last edit: 12 years 9 months ago by .
IP: 192.168.0.70
12 years 9 months ago #2580
by ashughes
Replied by ashughes on topic Change license activation methods to take Context
Well the activation methods take a ContextWrapper object, so I can use either an Activity or Application, since both extend ContextWrapper.
I was wondering if it's possible for the activation methods to take a Context instead of ContextWrapper? If so, then Global.Init() could take a Context instead of Activity.
I was wondering if it's possible for the activation methods to take a Context instead of ContextWrapper? If so, then Global.Init() could take a Context instead of Activity.
IP: 192.168.0.70
12 years 9 months ago #2583
by radaee
Replied by radaee on topic Change license activation methods to take Context
no, it seems that context has some methods not implements.
Time to create page: 0.412 seconds