Back to project page opscal.
The source code is released under:
Copyright (c) 2013 by Philip Nelson Some rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
If you think the Android project opscal 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 ca.pnelson.opscal; //from w w w . ja v a 2 s . c o m import android.app.ListActivity; import android.content.res.Resources; import android.os.Bundle; import android.widget.TextView; import android.widget.ListView; import android.util.Log; // 53, 65, 79 public class DateActivity extends ListActivity { private TextView mDate; private ListView mList; @Override protected void onCreate(Bundle savedInstanceState) { Bundle bundle = getIntent().getExtras(); Resources res = getResources(); String[] months = res.getStringArray(R.array.months); String[] weekdays = res.getStringArray(R.array.weekdays); int weekday = bundle.getInt("weekday"); int month = bundle.getInt("month"); int day = bundle.getInt("day"); int year = bundle.getInt("year"); int julian = bundle.getInt("julian"); byte[] data = bundle.getByteArray("data"); super.onCreate(savedInstanceState); setContentView(R.layout.date); mDate = (TextView)findViewById(R.id.date); mList = (ListView)findViewById(android.R.id.list); mDate.setText( weekdays[weekday - 1] + ", " + months[month] + " " + day + ", " + year + " (" + julian + ") " ); setListAdapter(new TeamAdapter(this, data)); } }