Back to project page Sunshine.
The source code is released under:
MIT License
If you think the Android project Sunshine 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 cloudchen.com.sunshine; //from www. ja v a 2 s . c o m import android.os.Bundle; import android.support.v7.app.ActionBarActivity; public class DetailActivity extends ActionBarActivity { public static final String DATE_KEY = "forecast_date"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_detail); if (savedInstanceState == null) { String date = getIntent().getStringExtra(DATE_KEY); Bundle args = new Bundle(); args.putString(DATE_KEY, date); DetailFragment fragment = new DetailFragment(); fragment.setArguments(args); getSupportFragmentManager().beginTransaction() .add(R.id.weather_detail_container, fragment) .commit(); } } }