Back to project page Android-Battery-Widget.
The source code is released under:
Apache License
If you think the Android project Android-Battery-Widget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright 2012 Erkan Molla// w w w . j ava 2 s.co m * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.em.batterywidget; public class Constants { public final static String BATTERY_INFO = "BATTERY_INFO_WIDGET"; public final static String BATTERY_SETTINGS = "BATTERY_SETTINGS"; public final static String APP_WIDGET_IDS = "AppWidgetIds"; public final static String WIDGET_ID = "WidgetId"; /* ** */ public final static String STATUS = "status"; public final static String PLUG = "plugged"; public final static String LEVEL = "level"; public final static String SCALE = "scale"; public final static String VOLTAGE = "voltage"; public final static String TEMPERATURE = "temperature"; public final static String TECHNOLOGY = "technology"; public final static String HEALTH = "health"; public final static String DEFAULT = "unknown"; /* ** */ public final static String BATTERY_USAGE = "android.intent.action.POWER_USAGE_SUMMARY"; /* ** */ public final static String NOTIFY_ICON_SETTINGS = "notify_icon_settings"; public final static String VIBRATION_SETTINGS = "vibration_settings"; public final static String SOUND_SETTINGS = "sound_settings"; public final static String WIDGET_THEME_SETTINGS = "widget_theme_settings"; public final static String TEXT_COLOUR_SETTINGS = "colour_settings"; public final static String NOTIFY_STYLE_SETTINGS = "notify_style_settings"; public final static String TEMPERATURE_SETTINGS = "temperature_settings"; public final static String NOTIFY_ICON_CHECKBOX_KEY = "notify_icon_checkbox"; public final static String VIBRATION_CHECKBOX_KEY = "vibration_checkbox"; public final static String SOUND_CHECKBOX_KEY = "sound_checkbox"; public final static String WIDGET_THEME_KEY = "widget_theme_list"; public final static String TEXT_COLOUR_KEY = "text_colour_list"; public final static String NOTIFY_STYLE_KEY = "notify_icon_list"; public final static String TEMPERATURE_TYPE_KEY = "temperature_list"; public final static String ABOUT_PREF_KEY = "about_pref_key"; /* ** */ public final static String DEFAULT_COLOUR = "#FFFFFF"; public final static String DEFAULT_TEMEPERATURE = "\u00B0 C"; /* ** */ public static final String DB_NAME = "batteryWidget.db"; public static final String DB_TABLE = "batteryWidgetEntryTable"; /* ** */ public static final String KEY_ID = "_id"; public static final String KEY_TIME = "time"; public static final String KEY_LEVEL = "level"; public static final String XAxisTitle = "Date"; public static final String YAxisTitle = "Charge level"; public static final String DateFormat = "dd MMM"; public static final String blank = " "; /* ** */ public static final String PaypalUrl = "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WZKBT53MJFUW8"; public static final String GithubUrl = "https://github.com/ermolla/Android-Battery-Widget"; /* ** */ public static final String FULL = " Full"; public static final String CHARGING_USB = " Charging (USB)"; public static final String CHARGING_AC = " Charging (AC)"; public static final String CHARGING = " Charging"; public static final String DISCHARGING = " Discharging"; public static final String UNKNOWN = " Unknown"; }