private void showPop()
   {
   Resources resources = getBaseContext().getResources();  
   Drawable d = resources.getDrawable(Color.BLACK);
   View view = this.getLayoutInflater().inflate(R.layout.upload, null);
   PopupWindow pop = new MyPopupwindow(view, LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT, this);
   pop.setBackgroundDrawable(d);
   pop.showAtLocation(findViewById(R.id.webInfo), Gravity.CENTER, 0, 0);  
   }   当运行到 Drawable d = resources.getDrawable(Color.BLACK);报错了。