Android Open Source - MoonCal Moonphase Calculator






From Project

Back to project page MoonCal.

License

The source code is released under:

GNU General Public License

If you think the Android project MoonCal 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.mooncal;
//from   w w  w. jav a 2s.c o m
public class MoonphaseCalculator {
  public double[] phases;
  public int[] lunations;
  
  static {
    System.loadLibrary("moonphase");
  }
  
  private native void calcNative(int year, int month, double[] phi, int[] lun);
  public static native int getSizeOfTimet();
  protected MoonphaseCalculator() {
    final int daysMax=42;
    phases=new double[daysMax];
    lunations=new int[daysMax];
  }
  public void calc(int year, int month) {
    calcNative(year, month, phases, lunations);
  }
}




Java Source Code List

com.example.mooncal.AboutDialogPreference.java
com.example.mooncal.MainActivity.java
com.example.mooncal.MonthPickerFragment.java
com.example.mooncal.MoonDayView.java
com.example.mooncal.MoonphaseCalculator.java
com.example.mooncal.SettingsActivity.java