public static void setSosDelay(Context context, long val) {
    mSosDelay = val;
    Prefs.putSosDelay(context, mSosDelay);

    // send broadcast that delay time changed
    Intent i = new Intent(SOS_DELAY_CHANGE);
    context.sendBroadcast(i);
  }
 public static long getSosDelay(Context context) {
   if (mSosDelay == 0) {
     mSosDelay = Prefs.getSosDelay(context);
   }
   return mSosDelay;
 }