I need a way to say if device is LDPI or MDPI or HDPI set html font size to x.
e.g
if (ldpi){
htmlString.append("<br><p align='center'><font color='Yellow' size='5'>");
}
else if (mdpi){
htmlString.append("<br><p align='center'><font color='Yellow' size='6'>");
}
else if (hdpi){
htmlString.append("<br><p align='center'><font color='Yellow' size='7'>");
}
any help would be appreciated
For reference: http://developer.android.com/reference/android/util/DisplayMetrics.html
you can get dpi value like this;
and compare the
densityproperty with constants;