Android Open Source - eVent event Marker






From Project

Back to project page eVent.

License

The source code is released under:

Apache License

If you think the Android project eVent listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.maps;
import java.util.Calendar;
//w  w  w .j  a v  a2 s  . c om
import android.content.Context;

import com.google.android.gms.maps.model.LatLng;

//singleton class for an event. All of these events will be stored in an ArrayOfEvents object
public class eventMarker {

  private static eventMarker instance = null;

  protected eventMarker() {
    // Exists only to defeat instantiation.
  }  
  
  // Here are some values we want to keep global.
  public LatLng Loc;
  public String Title;
  public String Description;
  public Calendar deadline;
  public boolean notified;
  public static eventMarker getInstance(Context context) {
    if(instance == null) {
      instance = new eventMarker();
      instance.Title = "";
      instance.Description = "";
      instance.notified = false;
      instance.Loc = new LatLng(0,0);
      instance.deadline = Calendar.getInstance();
    }
    return instance;
  }  
  
  public eventMarker copy(){
    eventMarker t = new eventMarker();
    t.Title = this.Title;
    t.Description = this.Description;
    t.Loc = this.Loc;
    t.deadline = (Calendar) this.deadline.clone();
    return t;
  }
  
}




Java Source Code List

com.example.maps.ArrayOfEvents.java
com.example.maps.DeadlineTrackerServiceTask.java
com.example.maps.DeadlineTrackerService.java
com.example.maps.EditEvent.java
com.example.maps.EventDetails.java
com.example.maps.ListEventsActivity.java
com.example.maps.MainActivity.java
com.example.maps.MakeEventActivity.java
com.example.maps.ViewTaskActivity.java
com.example.maps.eventMarker.java