Back to project page african-art-talent-discovery.
The source code is released under:
GNU General Public License
If you think the Android project african-art-talent-discovery 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.ekoconnect.afriphoto.fragments; //from w ww . java2 s .co m import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import com.actionbarsherlock.app.ActionBar; import com.actionbarsherlock.app.SherlockFragment; import com.appsng.connectors.LocalDataBase; public class BaseFragment extends SherlockFragment { ActionBar acBar; static Context context; static LocalDataBase localDataBase; public static SharedPreferences sharedPref; @Override public void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setHasOptionsMenu(true); acBar = getSherlockActivity().getSupportActionBar(); context = getSherlockActivity(); localDataBase = new LocalDataBase(context); sharedPref = PreferenceManager.getDefaultSharedPreferences(context); } }