version:6.4.6
fix: update:增加护眼模式,增加静默拍照,增加时间管控和专注模式
This commit is contained in:
@@ -1322,15 +1322,22 @@ public class Utils {
|
||||
int screenWidth = (int) (width / density); // 屏幕宽度(dp)
|
||||
int screenHeight = (int) (height / density);// 屏幕高度(dp)
|
||||
|
||||
// Log.e("h_bl", "屏幕宽度(像素):" + width);
|
||||
// Log.e("h_bl", "屏幕高度(像素):" + height);
|
||||
// Log.e("h_bl", "屏幕密度(0.75 / 1.0 / 1.5):" + density);
|
||||
// Log.e("h_bl", "屏幕密度dpi(120 / 160 / 240):" + densityDpi);
|
||||
// Log.e("h_bl", "屏幕宽度(dp):" + screenWidth);
|
||||
// Log.e("h_bl", "屏幕高度(dp):" + screenHeight);
|
||||
Log.e("getAndroiodScreenProperty", "屏幕宽度(像素):" + width);
|
||||
Log.e("getAndroiodScreenProperty", "屏幕高度(像素):" + height);
|
||||
Log.e("getAndroiodScreenProperty", "屏幕密度(0.75 / 1.0 / 1.5):" + density);
|
||||
Log.e("getAndroiodScreenProperty", "屏幕密度dpi(120 / 160 / 240):" + densityDpi);
|
||||
Log.e("getAndroiodScreenProperty", "屏幕宽度(dp):" + screenWidth);
|
||||
Log.e("getAndroiodScreenProperty", "屏幕高度(dp):" + screenHeight);
|
||||
return width + "×" + height;
|
||||
}
|
||||
|
||||
public static int getDensityDpi(Context context) {
|
||||
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
|
||||
DisplayMetrics dm = new DisplayMetrics();
|
||||
wm.getDefaultDisplay().getRealMetrics(dm);
|
||||
return dm.densityDpi;
|
||||
}
|
||||
|
||||
public static String getMacAddress() {
|
||||
List<NetworkInterface> interfaces = null;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user