package com.manning.aip.dealdroid;
import android.app.AlarmManager;
import android.os.SystemClock;
public class Constants {
public static final String LOG_TAG = "DealDroid";
public static final String FORCE_RELOAD = "FORCE_RELOAD";
// In real life, use AlarmManager.INTERVALs with longer periods of time
// for dev you can shorten this to 10000 or such, but deals don't change often anyway
// (better yet, allow user to set and use PreferenceActivity)
///public static final long ALARM_INTERVAL = 10000;
public static final long ALARM_INTERVAL = 1000*30;
public static final long ALARM_TRIGGER_AT_TIME = SystemClock.elapsedRealtime() + 30000;
// for SharedPrefernces keys for current deals (so we can compare and know if we have new deals)
public static final String DEAL1 = "deal1";
public static final String DEAL2 = "deal2";
public static final String DEAL3 = "deal3";
public static final String DEAL4 = "deal4";
}
|