Back to project page MoonCal.
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.
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); } }