Android Open Source - TwitterTrends Twitter Trends Application






From Project

Back to project page TwitterTrends.

License

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.

Java Source Code

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;
  }
}




Java Source Code List

camp.androidboot.twittertrends.ApplicationTest.java
camp.androidboot.twittertrends.TwitterTrendsApplication.java
camp.androidboot.twittertrends.model.Status.java
camp.androidboot.twittertrends.model.Trend.java
camp.androidboot.twittertrends.model.User.java
camp.androidboot.twittertrends.network.TwitterLite.java
camp.androidboot.twittertrends.ui.StatusListFragment.java
camp.androidboot.twittertrends.ui.TrendListFragment.java
camp.androidboot.twittertrends.ui.TrendsActivity.java