A toolkit for Android developing
- Add jitpack maven repo
repositories {
...
maven { url 'https://jitpack.io' }
}
- Add dependency
dependencies {
compile 'com.github.houxg:Quokka:0.1'
}
Init Quokka at the beginning of your app
Quokka.init(context);
Send custom command to your app via adb
Quokka.subscribeCommand(new Subscriber<String>() {
@Override
public void onUpdate(Publisher<String> publisher, String data) {
messageTv.setText("command:" + data);
}
});
adb shell am broadcast -a quokka.action.command --es command "your custom command"
Print every int enum