Android Open Source - FlangeAssist Frag Framer






From Project

Back to project page FlangeAssist.

License

The source code is released under:

MIT License

If you think the Android project FlangeAssist 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.atasoft.flangeassist;
//w w w. j  av a2 s  .co m
import android.annotation.*;
import android.app.*;
import android.os.*;
import com.atasoft.flangeassist.fragments.*;

public class FragFramer extends Activity {
  public static final int PAY_CALC = 0;
  public static final int HALL = 1;
  public static final int ABOUT = 2;
  ActionBar actionBar;
  
  @SuppressLint("NewApi")
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.fragframer);  
    actionBar = getActionBar();
    actionBar.setHomeButtonEnabled(true);
    
    //int fragCode = getIntent().getIntExtra("launch_frag", 0);
    int fragCode  = getIntent().getIntExtra("launch_frag", 0);
    launchFrag(fragCode);
    
  
    
  }
  
  private void launchFrag(int fragInt){
    Fragment frag;
    String name;
    switch (fragInt){
    case PAY_CALC:
      frag = new PaychequeFragment();
      name = PaychequeFragment.NAME;
      break;
    case HALL:
      frag = new HallFragment();
      name = HallFragment.NAME;
      break;
    default:
      frag = new AboutFragment();
      name = AboutFragment.NAME;
      break;
    }
    if(getFragmentManager().findFragmentByTag(name) == null){
      FragmentTransaction transaction = getFragmentManager().beginTransaction();
      setTitle(name);
      transaction.add(R.id.fragframe, frag, name);
      transaction.commit();
    }
  }
}




Java Source Code List

com.atasoft.adapters.ExListAd.java
com.atasoft.adapters.ExpandableGroup.java
com.atasoft.adapters.TabsPagerAdapter.java
com.atasoft.flangeassist.FragFramer.java
com.atasoft.flangeassist.MainActivity.java
com.atasoft.flangeassist.PreferenceMenu.java
com.atasoft.flangeassist.ToolsActivity.java
com.atasoft.flangeassist.fragments.AboutFragment.java
com.atasoft.flangeassist.fragments.CashCounter.java
com.atasoft.flangeassist.fragments.FlangeFragment.java
com.atasoft.flangeassist.fragments.HallFragment.java
com.atasoft.flangeassist.fragments.NozzleCalc.java
com.atasoft.flangeassist.fragments.PaychequeFragment.java
com.atasoft.flangeassist.fragments.RigTrig.java
com.atasoft.flangeassist.fragments.ShapeCalcFrag.java
com.atasoft.flangeassist.fragments.TorqueFragment.java
com.atasoft.flangeassist.fragments.UnitConFragment.java
com.atasoft.flangeassist.fragments.WageCPIEstimate.java
com.atasoft.flangeassist.fragments.WeldingFrag.java
com.atasoft.helpers.AtaMathUtils.java
com.atasoft.helpers.AtaTimePicker.java
com.atasoft.helpers.ConvDataHold.java
com.atasoft.helpers.JsonPuller.java
com.atasoft.helpers.ShapeCalcHold.java
com.atasoft.helpers.TaxManager.java