SHARE
TWEET

Accessing Drawable resources from a not context class

a guest Feb 22nd, 2012 8 Never
  1. private Context ctx = getApplication();
  2.  
  3. ... some code ...
  4.  
  5. MyClass myClass = new MyClass(ctx);
  6.        
  7. private Context ctx = null;
  8.  
  9. public MyClass(ctx) {
  10.     this.ctx = ctx;
  11. }
RAW Paste Data
Top