private void getDensityName(Context context) {
float density = context.getResources().getDisplayMetrics().density;
System.out.println("here" + density);
if (density >= 4.0) {
Toast.makeText(ctx, "its xxxhdpi", Toast.LENGTH_SHORT).show();
}else if(density >= 3.0) {
Toast.makeText(ctx, "its xxhdpi", Toast.LENGTH_SHORT).show();
}else if (density >= 2.0) {
Toast.makeText(ctx, "its xhdpi", Toast.LENGTH_SHORT).show();
}else if (density >= 1.5) {
Toast.makeText(ctx, "its mdpi", Toast.LENGTH_SHORT).show();