Back to project page HastingsMobileAndroid.
The source code is released under:
Apache License
If you think the Android project HastingsMobileAndroid 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 edu.hastings.hastingscollege.tabfragments; /*w w w .j a v a 2 s . c o m*/ import android.app.ActionBar; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.support.v4.view.ViewPager; import android.view.MenuItem; import com.google.android.gms.analytics.HitBuilders; import com.google.android.gms.analytics.Tracker; import edu.hastings.hastingscollege.R; import edu.hastings.hastingscollege.adapter.TabsPagerAdapter; import edu.hastings.hastingscollege.googleanalytics.MyApplication; public class SodexoMenu extends FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.sodexo_menu); ViewPager mViewPager = (ViewPager) findViewById(R.id.pager); final String KEY_DAY = "dayname"; Intent in = getIntent(); String day = in.getStringExtra(KEY_DAY); ActionBar actionBar = getActionBar(); actionBar.setTitle("Sodexo Menu for " + day); actionBar.setDisplayHomeAsUpEnabled(true); mViewPager.setAdapter(new TabsPagerAdapter(this.getSupportFragmentManager(), day)); Tracker t = ((MyApplication) getApplication()).getTracker(MyApplication.TrackerName.APP_TRACKER); t.setScreenName("Menu"); t.send(new HitBuilders.AppViewBuilder().build()); } @Override public boolean onOptionsItemSelected(MenuItem item) { finish(); return true; } }