package com.bryanjswift.simplenote;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

/**
 * Hold constants for the SimpleNote application
 */
public class Constants {
	/** Name of stored preferences */
	public static final String PREFS_NAME = "SimpleNotePrefs";
	/** Logging tag prefix */
	public static final String TAG = "SimpleNote:";
	// Note Default Values
	public static final long DEFAULT_ID = -1L;
	public static final String DEFAULT_KEY = "__SN__DEFAULT__KEY__";
	// Dates
	public static final DateFormat serverDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	// Message Codes
	public static final int MESSAGE_UPDATE_NOTE = 12398;
	public static final int MESSAGE_UPDATE_FINISHED = 9732145;
	// Activity for result request Codes
	public static final String REQUEST_KEY = "ActivityRequest";
	public static final int REQUEST_LOGIN = 32568;
	public static final int REQUEST_EDIT = 9138171;
	// Notifications
	public static final int NOTIFICATION_CREDENTIALS = 98074121;
	// API Base URL
	public static final String API_BASE_URL   = "https://simple-note.appspot.com/api";
	public static final String API_LOGIN_URL  = API_BASE_URL + "/login";					// POST
	public static final String API_NOTES_URL  = API_BASE_URL + "/index";					// GET
	public static final String API_NOTE_URL   = API_BASE_URL + "/note";						// GET
	public static final String API_UPDATE_URL = API_BASE_URL + "/note";						// POST
	public static final String API_DELETE_URL = API_BASE_URL + "/delete";					// GET
	public static final String API_SEARCH_URL = API_BASE_URL + "/search";					// GET
}

@@ -181,103 +181,8 @@
 s %7B%0A
-%09/** Name of stored preferences */%0A%09public static final String PREFS_NAME = %22SimpleNotePrefs%22;%0A
 %09/**
@@ -625,16 +625,98 @@
 732145;%0A
+%09// Message Keys%0A%09public static final String DATA_REFRESH_NOTES = %22refreshNotes%22;%0A
 %09// Acti

Remove PREFS_NAME and add Message key Constants