Back to project page AndroidWeatherBuoyDemo.
The source code is released under:
Apache License
If you think the Android project AndroidWeatherBuoyDemo 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 com.kevinrschultz.weatherbuoy.ui; //w w w . jav a2 s. c om import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.Context; import android.content.Intent; import android.os.Bundle; import com.kevinrschultz.weatherbuoy.R; public class BuoyDetailActivity extends BaseActivity { public static Intent makeBuoyDetailIntent(Context context, int bouyId) { return new Intent(context, BuoyDetailActivity.class); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_fragment_container); attachBuoyDetailFragment(); } private void attachBuoyDetailFragment() { FragmentManager fm = getFragmentManager(); FragmentTransaction ft = fm.beginTransaction(); ft.replace(R.id.activity_fragment_container, BuoyDetailFragment.makeBuoyDetailFragment()); ft.commit(); } }