Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for 
change notification.

The "DeprecationPolicy" page has been changed by JoeBowser:
http://wiki.apache.org/cordova/DeprecationPolicy?action=diff&rev1=15&rev2=16

Comment:
Re-wrote this deprecation.  We still support ctx. :(

  
http://simonmacdonald.blogspot.com/2012/08/so-you-wanna-write-phonegap-200-android.html
  
  
+ == deprecation: Removal of Legacy Context ==
+ 
+ CordovaInterface may not be a Context object, therefore all plugins that use 
a context object ctx should use the new 
+ Cordova methods to access the activity to use the activities' methods
+ 
+ {{{
+ ctx.getAssets()
+ }}}
+ will no longer get the assets of the activity.  Instead, plugin developers 
needing access to the activity should call getActivity, which should be 
implemented by 
+ the CordovaInterface.  It should be noted that if the developer is not using 
DroidGap for their application, they are responsible for implementing this 
method and making sure the main activity is returned, and that plugin 
developers should be prepared for the case when the activity is null. (i.e. 
Lock-Screen Widgets).  A working example of this method is below.
+ {{{
+ cordova.getActivity().getAssets()
+ }}}
  
  == deprecation philosophy ==
  

Reply via email to