Skip to content

Instantly share code, notes, and snippets.

View leov1's full-sized avatar

CrazyGuy leov1

  • Beijing,China
View GitHub Profile
@leov1
leov1 / AboutActivity.java
Created October 8, 2016 15:39
Android Update Service Notification show progress with permission request
此处 只 添加 调起处的代码
activity implements EasyPermissions.PermissionCallbacks
@AfterPermissionGranted(RC_STORE_PERM)
private void startCheckUpdate() {
if (EasyPermissions.hasPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE})) {
// Have permission, do the thing!
new UpdateUtils(AboutActivity.this, true).checkUpdate();
@leov1
leov1 / gist:4b249af5e9dc2d7e2c7c9ba20475c47a
Created May 20, 2016 08:54
图片高斯模糊 处理
/** 水平方向模糊度 */
private static float hRadius = 180;
/** 竖直方向模糊度 */
private static float vRadius = 180;
/** 模糊迭代度 */
private static int iterations =3;
/**
* 图片高斯模糊处理
*