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

More
IP: 192.168.0.70 12 years 9 months ago #2553 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.
More
IP: 192.168.0.70 12 years 9 months ago - 12 years 9 months ago #2555 by radaee
in fact, an Activity object is only valid object to active license.
Last edit: 12 years 9 months ago by .
More
IP: 192.168.0.70 12 years 9 months ago #2580 by ashughes
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.
More
IP: 192.168.0.70 12 years 9 months ago #2583 by radaee
no, it seems that context has some methods not implements.
Time to create page: 0.412 seconds
Powered by Kunena Forum