Back to project page antigravity.
The source code is released under:
GNU General Public License
If you think the Android project antigravity 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.floatboth.antigravity.net; // w w w . j av a 2 s . com import retrofit.RestAdapter; import retrofit.client.OkClient; import com.squareup.okhttp.OkHttpClient; import com.octo.android.robospice.retrofit.RetrofitGsonSpiceService; public class ADNSpiceService extends RetrofitGsonSpiceService { private static final String API_URL = "https://alpha-api.app.net/stream/0"; OkHttpClient client = new OkHttpClient(); @Override public void onCreate() { super.onCreate(); addRetrofitInterface(ADNClient.class); } @Override protected String getServerUrl() { return API_URL; } @Override protected RestAdapter.Builder createRestAdapterBuilder() { RestAdapter.Builder ra = super.createRestAdapterBuilder() .setClient(new OkClient(client)); // ra.setLogLevel(RestAdapter.LogLevel.HEADERS); return ra; } @Override public int getThreadCount() { return 3; } }