Skip to content

Instantly share code, notes, and snippets.

View srujanb's full-sized avatar

Srujan Barai srujanb

  • Raleigh, North Caroline
View GitHub Profile
@srujanb
srujanb / RecorderService.java
Created July 17, 2016 13:06 — forked from qihnus/RecorderService.java
a minimalist example of Android accessibility service
import android.accessibilityservice.AccessibilityService;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.util.Log;
import android.view.accessibility.AccessibilityEvent;
public class RecorderService extends AccessibilityService {
static final String TAG = "RecorderService";
private String getEventType(AccessibilityEvent event) {