public void switchOn() { if (httpClient == null) { httpClient = new HTTPClient(this); } httpClient.callAPIAsync(getUrlString(1, true)); }