unique names for messages

This commit is contained in:
Ronald Schaten 2011-06-19 18:46:13 +02:00
parent b0e8f31abf
commit 46dc2e3842
3 changed files with 5 additions and 3 deletions

View File

@ -8,4 +8,4 @@
# project structure.
# Project target.
target=android-8
target=android-10

View File

@ -11,7 +11,8 @@ import android.preference.PreferenceManager;
import de.schatenseite.android.datepreference.DatePreference;
public class WaldemarPreferences extends PreferenceActivity {
public static final String PREFERENCES_UPDATED = "PREFERENCES_UPDATED";
private static final String PREFIX = WaldemarPreferences.class.getPackage().getName() + ".";
public static final String PREFERENCES_UPDATED = PREFIX + "PREFERENCES_UPDATED";
int widgetId;
public void enableDisablePreferences(String val) {
EditTextPreference pref_name = (EditTextPreference)findPreference("pref_name");

View File

@ -24,7 +24,8 @@ import android.widget.RemoteViews;
import de.schatenseite.android.datepreference.DatePreference;
public class WaldemarWidget extends AppWidgetProvider {
public static final String MIDNIGHTLY_WIDGET_UPDATE = "MIDNIGHTLY_WIDGET_UPDATE";
private static final String PREFIX = WaldemarWidget.class.getPackage().getName() + ".";
public static final String MIDNIGHTLY_WIDGET_UPDATE = PREFIX + "MIDNIGHTLY_WIDGET_UPDATE";
private static final double SECONDS_PER_DAY = 24 * 60 * 60;
private static final double MILLISECONDS_PER_DAY = SECONDS_PER_DAY * 1000;
private static final int CURRENTLY_NOT_USED_REQUEST_CODE = 0;