Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Submit your requests and polls about new features
  • Page:
  • 1

TOPIC:

Change license activation methods to take Context 10 years 10 months ago #2553

  • ashughes
  • ashughes's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 1
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.

Please Log in or Create an account to join the conversation.

Change license activation methods to take Context 10 years 10 months ago #2555

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
in fact, an Activity object is only valid object to active license.

Please Log in or Create an account to join the conversation.

Last edit: by .

Change license activation methods to take Context 10 years 10 months ago #2580

  • ashughes
  • ashughes's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 1
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.

Please Log in or Create an account to join the conversation.

Change license activation methods to take Context 10 years 10 months ago #2583

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
no, it seems that context has some methods not implements.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum