Skip to content

dxsdyhm/AlarmAndJob

Repository files navigation

AlarmAndJob Build Status

允许自启动与电量设置跳转

1.如果发现某些机型出现问题,欢迎反馈issue
2.如果有补充已有机型的Data,可以pull,共同完善

下载地址

  • add some plugins in project build.gradle like this
    allprojects {
	repositories {
	...
	maven { url 'https://jitpack.io' }
	}
    }
  • in your app build.gradle
    dependencies {
        compile 'com.github.dxsdyhm:AlarmAndJob:latestVersion'
    }

使用

    try {
        AutoStartUtils.newInstance(context).toTargetActivity();
    } catch (Exception e) {
        e.printStackTrace();
        Toast.makeText(context,"无法自动跳转!!!!!",Toast.LENGTH_LONG).show();
    }