Change license activation methods to take Context - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Submit your requests and polls about new features
  • Page:
  • 1

TOPIC: Change license activation methods to take Context

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

  • ashughes
  • ashughes's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 32
  • Karma: 1
  • Thank you received: 0
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 5 years 5 months ago #2555

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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 5 years 5 months ago #2580

  • ashughes
  • ashughes's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 32
  • Karma: 1
  • Thank you received: 0
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 5 years 5 months ago #2583

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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