code: public static RxBleClient getRxBleClient(Context context) {
          SampleApplication application = (SampleApplication) context.getApplicationContext();
          return application.rxBleClient;
      }
docs: In practise you will use some kind of dependency injection pattern.