Back to project page StravaFlow.
The source code is released under:
MIT License
If you think the Android project StravaFlow 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 util; /*from w ww. j a v a 2s .com*/ import android.app.Activity; import android.app.Fragment; import android.os.Bundle; import me.mattlogan.stravaflow.R; import me.mattlogan.stravaflow.StravaFlowApplication; import me.mattlogan.stravaflow.api.StravaApi; import me.mattlogan.stravaflow.ui.activity.StravaApiInjector; public class FragmentTestActivity extends Activity implements StravaApiInjector { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.base); } @Override public StravaApi getStravaApi() { return ((StravaFlowApplication) getApplication()).getStravaApi(); } public void addFragment(Fragment fragment) { getFragmentManager().beginTransaction() .add(R.id.container, fragment) .commit(); } }