Android Open Source - generalsbuzz A P P






From Project

Back to project page generalsbuzz.

License

The source code is released under:

MIT License

If you think the Android project generalsbuzz 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 me.kworden.wlcalendar2.util;
//w ww.j  av a2 s  .  co m
import me.kennyworden.utils.KWDateSuite;
import me.kworden.wlcalendar2.struct.MonthYearParcel;
import me.kworden.wlcalendar2.struct.WLEvent;

import android.content.Context;
import android.content.SharedPreferences;

public class APP
{
  public static WLEvent currentEvent = null;
  public static boolean repull = false;
  public static int scrollPos[] = {0, 0};
  public static SharedPreferences sharedPreferences = null;
  public static MonthYearParcel[] dates = new MonthYearParcel[]{ new MonthYearParcel(KWDateSuite.getThisMonth(), KWDateSuite.getThisYear()) };
  
  public static int dp(Context p_context, float px)
  {
      return (int)(px / p_context.getResources().getDisplayMetrics().density);
  }
  
  public static MonthYearParcel[] getDatesToLoad(int p_months_ahead)
  {
    MonthYearParcel t_dates[] = new MonthYearParcel[p_months_ahead];

    String i_t_month = KWDateSuite.getThisMonth(),
        i_t_year = KWDateSuite.getThisYear();
    
    for(int i = 0; i < p_months_ahead; i++)
    {
      t_dates[i] = new MonthYearParcel(i_t_month, i_t_year);
      
      String i_t_date = KWDateSuite.stripDay(KWDateSuite.getMonthsInFuture(i+1));
      i_t_month = i_t_date.split("/")[0];
      i_t_year = i_t_date.split("/")[1];
    }
    
    return t_dates;
  }
}




Java Source Code List

me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.BuildConfig.java
me.kworden.wlcalendar2.MainActivity.java
me.kworden.wlcalendar2.SettingsActivity.java
me.kworden.wlcalendar2.adapter.EventAdapter.java
me.kworden.wlcalendar2.async.CheckLocalDataTask.java
me.kworden.wlcalendar2.async.ParseDataTask.java
me.kworden.wlcalendar2.async.ReadLocalDataTask.java
me.kworden.wlcalendar2.async.RequestRemoteDataTask.java
me.kworden.wlcalendar2.async.StoreDataTask.java
me.kworden.wlcalendar2.fragment.EventDisplayFragment.java
me.kworden.wlcalendar2.fragment.EventInfoFragment.java
me.kworden.wlcalendar2.fragment.SettingsFragment.java
me.kworden.wlcalendar2.receiver.CheckLocalDataReceiver.java
me.kworden.wlcalendar2.receiver.RequestRemoteDataReceiver.java
me.kworden.wlcalendar2.receiver.UpdateRowsReceiver.java
me.kworden.wlcalendar2.struct.MonthYearParcel.java
me.kworden.wlcalendar2.struct.WLEventClassifier.java
me.kworden.wlcalendar2.struct.WLEventLinebreak.java
me.kworden.wlcalendar2.struct.WLEvent.java
me.kworden.wlcalendar2.struct.WLHeader.java
me.kworden.wlcalendar2.util.APP.java
me.kworden.wlcalendar2.util.BROADCAST.java
me.kworden.wlcalendar2.util.MD5.java
me.kworden.wlcalendar2.util.PATTERNS.java
me.kworden.wlcalendar2.util.STATUS.java