在***.class中创建getResources()方法: private Resources getResources() { // TODO Auto-generated method stub Resources mResources = null; mResources = getResources(); return mResources; }
来源