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 me.mattlogan.stravaflow.ui.activity; /*from w ww.j a v a 2s. c o m*/ import android.app.Fragment; import me.mattlogan.stravaflow.R; import me.mattlogan.stravaflow.api.model.StravaActivity; import me.mattlogan.stravaflow.ui.fragment.ActivitiesFragment; import me.mattlogan.stravaflow.ui.fragment.ActivityDetailFragment; public class ActivitiesActivity extends BaseActivity implements ActivitiesFragment.Listener { @Override protected Fragment getInitialFragment() { return ActivitiesFragment.newInstance(); } @Override public void onActivitySelected(StravaActivity stravaActivity) { getFragmentManager().beginTransaction() .replace(R.id.container, ActivityDetailFragment.newInstance(stravaActivity), ActivityDetailFragment.class.getSimpleName()) .addToBackStack(null) .commit(); } }