Android Open Source - SimpleTwitterClient Twitter Application

From Project

Back to project page SimpleTwitterClient.


The source code is released under:

Copyright (c) 2014 Keithen Hayenga Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the So...

If you think the Android project SimpleTwitterClient 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 com.codepath.apps.basictwitter;
/*www.j  a  v a2  s.  c  o  m*/
import android.content.Context;

import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;

 * This is the Android application itself and is used to configure various settings
 * including the image cache in memory and on disk. This also adds a singleton
 * for accessing the relevant rest client.
 *     RestClient client = RestClientApp.getRestClient();
 *     // use client to send requests to API
public class TwitterApplication extends {
  private static Context context;
    public void onCreate() {
        TwitterApplication.context = this;
        // Create global configuration and initialize ImageLoader with this configuration
        DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder().
        ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getApplicationContext())
    public static TwitterClient getRestClient() {
      return (TwitterClient) TwitterClient.getInstance(TwitterClient.class, TwitterApplication.context);

Java Source Code List