此方法可当工具类直接使用:

 
  
  1.  * 读取Assets文件夹中的图片资源 
  2.  * @param context 
  3.  * @param fileName 图片名称 
  4.  * @return 
  5.  */ 
  6. public static Bitmap getImageFromAssetsFile(Context context, String fileName) {   
  7.     Bitmap p_w_picpath = null;   
  8.     AssetManager am = context.getResources().getAssets();   
  9.     try {   
  10.         InputStream is = am.open(fileName);   
  11.         p_w_picpath = BitmapFactory.decodeStream(is);   
  12.         is.close();   
  13.     } catch (IOException e) {   
  14.         e.printStackTrace();   
  15.     }   
  16.     return p_w_picpath;