Android Open Source - FragmentTutorial App






From Project

Back to project page FragmentTutorial.

License

The source code is released under:

Apache License

If you think the Android project FragmentTutorial 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.yanlu.android.fragment;
/* w  ww. j a  va2s.c o  m*/
import android.app.Application;
import android.content.Context;
import android.util.Log;

import com.yanlu.android.fragment.net.RequestManager;

/**
 * ??????????
 * 
 * @author yanlu
 * @date 2012-10-31 ????11:24:54
 */
public class App extends Application {
  private static final String TAG = "Application";
  private static Context context;

  public static Context getContext() {
    return context;
  }

  @Override
  public void onCreate() {
    super.onCreate();
        Log.d(TAG, "app start");
        context = this.getApplicationContext();
        RequestManager.init(context);
        Log.d(TAG, "app start over");
  }

  public void onTerminate() {
    super.onTerminate();
        Log.d(TAG, "app onTerminate");
  }

}




Java Source Code List

com.yanlu.android.fragment.App.java
com.yanlu.android.fragment.MainActivity.java
com.yanlu.android.fragment.SettingsActivity.java
com.yanlu.android.fragment.frg.FragmentByXml.java
com.yanlu.android.fragment.frg.LeftFragment.java
com.yanlu.android.fragment.frg.RightFragment.java
com.yanlu.android.fragment.model.DemoDataMo.java
com.yanlu.android.fragment.model.DemoParcel.java
com.yanlu.android.fragment.net.GsonRequest.java
com.yanlu.android.fragment.net.LruBitmapCache.java
com.yanlu.android.fragment.net.RequestManager.java