Add "import android.util.DisplayMetrics;" in android