DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); String strOpt = "手机屏幕分辨率为:" + dm.widthPixels + " × " + dm.heightPixels; mTextView01 = (TextView) findViewById(R.id.myTextView01); mTextView01.setText(strOpt);