Android Open Source - local-stories Event






From Project

Back to project page local-stories.

License

The source code is released under:

Apache License

If you think the Android project local-stories 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 no.hiof.stud.localstories;
//from w w  w.j a  va 2  s .com
public class Event {
  public int id;
  private static int idcount=0;
  public String header;
  public String text;
  public String[] pictures;
  public String[] audio;
  //From-Date
  public int fromDay=0;
  public int fromMonth=0;
  public int fromYear=0;
  //To-Date
    public int toDay=0;
    public int toMonth=0;
    public int toYear=0;
  //Location [Posibly temp]
  private double x=0;
  private double y=0;
  //
  public String[] keywords;
  
  public Event(String head, String txt, String fromDate, String toDate, String[] pics, String[] sounds, String keys){
    id=idcount;
    idcount++;
    header=head;
    text=txt;
    pictures=pics;
    audio=sounds;
    String[] fDte=fromDate.split("[.]");
    if(fDte.length==3){
      fromDay = Integer.parseInt(fDte[0]);
      fromMonth = Integer.parseInt(fDte[1]);
      fromYear =  Integer.parseInt(fDte[2]);
    }
    String[] tDte=toDate.split("[.]");
    if(tDte.length==3){
      toDay = Integer.parseInt(tDte[0]);
      toMonth = Integer.parseInt(tDte[1]);
      toYear =  Integer.parseInt(tDte[2]);
    }
    keywords = keys.split(",");
  }

  public double getLat(){
    return x;
  }
  public double getLng(){
    return y;
  }
  public void setLat(double xx){
    x=xx;
  }
  public void setLng(double yy){
    y=yy;
  }
}




Java Source Code List

no.hiof.stud.localstories.ArticleFragment.java
no.hiof.stud.localstories.AudioFragment.java
no.hiof.stud.localstories.DisplayMessageActivity.java
no.hiof.stud.localstories.DisplayPhoto.java
no.hiof.stud.localstories.EventActivity.java
no.hiof.stud.localstories.Event.java
no.hiof.stud.localstories.Library.java
no.hiof.stud.localstories.ListFragment.java
no.hiof.stud.localstories.Load.java
no.hiof.stud.localstories.LocationManagerHelper.java
no.hiof.stud.localstories.MainActivity.java
no.hiof.stud.localstories.MapFragment.java
no.hiof.stud.localstories.MyItemizedOverlay.java
no.hiof.stud.localstories.MyOwnItemizedOverlay.java
no.hiof.stud.localstories.PhotosFragment.java
no.hiof.stud.localstories.Picture.java
no.hiof.stud.localstories.PlayAudio.java
no.hiof.stud.localstories.RangeSeekBar.java
no.hiof.stud.localstories.Search.java