lordgreg

Untitled

Aug 2nd, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.22 KB | None | 0 0
  1. //////////////////////////////////
  2. // part of activity class
  3. //////////////////////////////////
  4. public class Main extends Activity {
  5.  
  6.     // singleton object
  7.     private static Main sInstance = null;
  8.  
  9.     // background service object
  10.     protected static Intent bgService = null;
  11.  
  12.     // tab fragment
  13.     protected Fragment fragmentEvent;
  14.     protected Fragment fragmentProfile;
  15.  
  16.     @Override
  17.     protected void onCreate(Bundle savedInstanceState) {
  18.         super.onCreate(savedInstanceState);
  19.         setContentView(R.layout.activity_main);
  20.  
  21.         // set singleton instance
  22.         sInstance = this;
  23.  
  24.         /**
  25.          * create fragment objects
  26.          */
  27.         fragmentEvent = new FragmentEvent();
  28.         fragmentProfile = new FragmentProfile();
  29.  
  30.  
  31.  
  32. //////////////////////////////////
  33. // part of FRAGMENT class
  34. //////////////////////////////////
  35. public class FragmentEvent extends Fragment {
  36.  
  37.     /**
  38.      * VARIABLES
  39.      */
  40.  
  41.     // singleton
  42.     private static FragmentEvent sInstance;
  43.  
  44.     // placeholder for current Event
  45.     protected Profile profile = null;
  46.  
  47.     // container for our profiles
  48.     private ViewGroup mContainerView;
  49.  
  50.     // our fragment view
  51.     private View mView;
  52.  
  53. ...
Advertisement
Add Comment
Please, Sign In to add comment