RadaeePDF.com :: Topic: Change license activation methods to take Context (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Submit your requests and polls about new features

TOPIC: Change license activation methods to take Context

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

  • ashughes
  • ashughes's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Karma: 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.
The administrator has disabled public write access.

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

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
in fact, an Activity object is only valid object to active license.
Last Edit: 4 years 3 months ago by .
The administrator has disabled public write access.

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

  • ashughes
  • ashughes's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
  • Karma: 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.
The administrator has disabled public write access.

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

  • radaee
  • radaee's Avatar
  • OFFLINE
  • Moderator
  • Posts: 825
  • Thank you received: 10
  • Karma: 43
no, it seems that context has some methods not implements.
The administrator has disabled public write access.
Powered by Kunena Forum