Back to project page Android-Perka.
The source code is released under:
Apache License
If you think the Android project Android-Perka listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.michaelbarany.perka; //w w w . ja v a2s . c o m import retrofit.RestAdapter; public class Api { private static final String API_URL = "https://getperka.com/api/2"; private static RestAdapter sRestAdapter; public static RestAdapter getRestAdapter() { if (null == sRestAdapter) { sRestAdapter = new RestAdapter.Builder() .setServer(API_URL) .build(); } return sRestAdapter; } }