public static RxBleClient getRxBleClient(Context context) {
        SampleApplication application = (SampleApplication) context.getApplicationContext();
        return application.rxBleClient;
    }
In practice you will use some kind of dependency injection pattern.
sample/src/main/java/com/polidea/rxandroidble2/sample/SampleApplication.java