Android Open Source - android-intro Github Events App






From Project

Back to project page android-intro.

License

The source code is released under:

MIT License

If you think the Android project android-intro 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.example.app;
/*from   w  w  w. j  a  va2s .  com*/
import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.ImageLoader;
import com.android.volley.toolbox.Volley;
import com.example.app.cache.LruBitmapCache;

/**
 * Created by andy on 3/12/14.
 */
public class GithubEventsApp extends Application {

    private static RequestQueue requestQueue;
    private static LruBitmapCache bitmapCache;
    private static ImageLoader imageLoader;

    @Override
    public void onCreate() {
        super.onCreate();
        requestQueue = Volley.newRequestQueue(getApplicationContext());
        bitmapCache = new LruBitmapCache(10 * 1024);
        imageLoader = new ImageLoader(requestQueue, bitmapCache);
    }

    public static RequestQueue getRequestQueue() {
        return requestQueue;
    }

    public static ImageLoader getImageLoader() { return imageLoader; }
}




Java Source Code List

com.example.app.EventListFragment.java
com.example.app.GithubEventsApp.java
com.example.app.MainActivity.java
com.example.app.WebViewActivity.java
com.example.app.api.Actor.java
com.example.app.api.Event.java
com.example.app.api.EventsResponse.java
com.example.app.api.GitHubRequestManager.java
com.example.app.api.GitHubRequest.java
com.example.app.api.Repo.java
com.example.app.cache.LruBitmapCache.java