- Keep your application live.
- Wake up your application.
- compile 'com.github.zdxiang:SuperInvoker:the lasted version'
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.zdxiang</groupId>
<artifactId>SuperInvoker</artifactId>
<version>the lasted version</version>
</dependency>
- Make sure that Your Application extends DaemonApplication and overried the methods
- Init the invokerEngin in 'startYourService'
- Return your working processName in 'getYourProcessName'.E.g cn.zdxiang.test:process
- Return your empty processName in 'getCoreProcessName'.E.g cn.zdxiang.test:coreprocess
- Return your working service CanonicalName that extends BaseBizService in 'getYourServiceCanonicalName'.E.g MyService.class.getCanonicalName();
- Set your manifest file
You can guide the user to set the automatic start.
if (!IntentWrapperUtils.isIntentWrapperSet(context)) {
IntentWrapper.whiteListMatters(context, activity, "some tips you want");
};