Back to project page YgnTraffic.
The source code is released under:
GNU General Public License
If you think the Android project YgnTraffic 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 me.sh.ygntraffic.base; //w ww. j a v a2s. c o m import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; /** * Created by SH on 16/Jun/2014. */ public class BaseFragment extends Fragment { protected Context context; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Retain this fragment across configuration changes. setRetainInstance(true); context = getActivity().getApplicationContext(); } }