Skip to content

Instantly share code, notes, and snippets.

View shahrukhamd's full-sized avatar
🙃
¯\_(ツ)_/¯

ShahRukh shahrukhamd

🙃
¯\_(ツ)_/¯
View GitHub Profile
package com.project.sdk
import org.gradle.api.Plugin
import org.gradle.api.Project
import java.util.regex.Matcher
import java.util.regex.Pattern
class ServicesPlugin implements Plugin<Project> {
public class ExampleService extends Service {
int mStartMode; // indicates how to behave if the service is killed
IBinder mBinder; // interface for clients that bind
boolean mAllowRebind; // indicates whether onRebind should be used
@Override
public void onCreate() {
// The service is being created
}
@Override