Back to project page datapulse.
The source code is released under:
GNU General Public License
If you think the Android project datapulse 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 ar.idack.datapulse.activity; // w ww .java 2 s. c o m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.View; import ar.idack.datapulse.R; import ar.idack.datapulse.model.Pulse; public class ScheduleList extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_schedule_list); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.schedule_list, menu); return true; } /* * Actions */ public void showNewPulseActivity(View view) { Intent newPulse = new Intent(this, Schedule.class); startActivity(newPulse); } public void showEditPulseActivity(View view) { Intent editPulse = new Intent(this, Schedule.class); Pulse pulse = new Pulse(); // TODO get pulse info. Edit adobe. editPulse.putExtra(Pulse.EXTRA_NAME, pulse.getName()); editPulse.putExtra(Pulse.EXTRA_WIFI, pulse.isWifi()); editPulse.putExtra(Pulse.EXTRA_DATA, pulse.isData()); editPulse.putExtra(Pulse.EXTRA_DURATION, pulse.getDuration()); editPulse.putExtra(Pulse.EXTRA_DELAY, pulse.getDelay()); if (pulse.getStartTime() != null) { editPulse.putExtra(Pulse.EXTRA_START, pulse.getStartTime().toMillis(false)); // false? editPulse.putExtra(Pulse.EXTRA_END, pulse.getEndTime().toMillis(false)); // false? } startActivity(editPulse); } }