WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.screenBrightness = 1;//此值可以修改 代表亮度大小[0,1]
lp.screenBrightness = 1;//此值可以修改 代表亮度大小[0,1]
getWindow().setAttributes(lp);
//base64对字符串进行编解码
String base64str = new String(Base64.encode("hello word".getBytes(),Base64.DEFAULT));