Back to project page FragmentTutorial.
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.
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"); } }