Back to project page TwitterTrends.
The source code is released under:
Apache License
If you think the Android project TwitterTrends 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 camp.androidboot.twittertrends; // w ww. j a v a 2 s.c o m import android.app.Application; import camp.androidboot.twittertrends.network.TwitterLite; import retrofit.RestAdapter; /** * */ public class TwitterTrendsApplication extends Application { private static final String API_URL = "https://raw.githubusercontent.com/MobileBootcamp/TwitterTrends/master/app/src/main/assets/api/"; private TwitterLite twitterLite; @Override public void onCreate() { super.onCreate(); RestAdapter restAdapter = new RestAdapter.Builder() .setEndpoint(API_URL) .build(); twitterLite = restAdapter.create(TwitterLite.class); } /** * * @return */ public TwitterLite getTwitterLite() { return twitterLite; } }