BigDecimal one = new BigDecimal(99999999998l);
BigDecimal two = new BigDecimal(1);
one = one.add(two); // сложение
System.out.println(one.round(new MathContext(3,RoundingMode.HALF_UP)));
String path = Environment.getExternalStorageDirectory().toString()+File.separator+DIR_SD+File.separator+FILENAME_SD;
File file = null;
boolean b = false;
file = new File(path);
b = file.mkdirs();
try {
b = file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
if (b){
//не заходит в блок
}
private bool isTabletModeDetermined = false;
private bool isTabletMode = false;
//....
public static boolean isTablet(Context paramContext) {
if (!isTabletModeDetermined) {
if (paramContext.getResources().getConfiguration().smallestScreenWidthDp>= 600)
isTabletMode = true;
isTabletModeDetermined = true;
}
return isTabletMode;
}