RSSTS = Report Screenshot To Slack
You can report a screenshot of your application to slack channels that you like.
public class YourApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// Initialize Rssts
Rssts.initialize(true, "your slack token", "your slack channel ID");
// Start Rsstser of Your Application
Rsstser.start(this);
}
// Maybe, this method is called when you use emulator
@Override
public void onTerminate() {
// Stop Rsstser of Your Application
Rsstser.stop(this);
super.onTerminate();
}
}
You should look this sample code.
Application.ActivityLifecycleCallbacks is used by sample code but it is released from API-14. When the api that you use is lower than 14, you have to use compat-ActivityLifecycleCallbacks. Check this sample.
repositories {
jcenter()
}
dependencies {
compile 'com.github.goka.rssts:library:1.0.0'
}
Check this repository !
Check this repository !