Back to project page SilenceIt.
The source code is released under:
Apache License
If you think the Android project SilenceIt 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 Neena Maldikar// www.j a v a 2s . com * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. You should have * received a copy of the GNU General Public License along with this program. * If not, see <http://www.gnu.org/licenses/>. * * Author: Neena Maldikar * Feedback: neena@pdx.edu * * SilenceIt - An android app that changes your phone volume as per your * calendar event. ****************************************************************************/ package com.SilenceIt.model; /** * @author neenam * */ public class Constants { public static final String TAG = "SilenceIt"; public static final String VERSION = "1.0"; /** * onActivityResult request codes: */ public static final int GET_LOGIN = 0; public static final int AUTHENTICATED = 1; public static final int CREATE_EVENT = 2; /** * The type of account that we can use for API operations. */ public static final String ACCOUNT_TYPE = "com.google"; /** * The name of the service to authorize for. */ public static final String OAUTH_SCOPE = "oauth2:https://www.googleapis.com/auth/calendar"; /** * Date format for displaying the meeting date and time. */ public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss"; /** * Constants passed while calling setAlarmService from MainActivity. */ public final static String ACTION_BEGIN = "com.example.test.ACTION_BEGIN"; public final static String ACTION_END = "com.example.test.ACTION_END"; public final static String BEGIN = "com.example.test.BEGIN"; public final static String END = "com.example.test.END"; public final static String CALL_SERVICE = "com.example.test.CALL_SERVICE"; public final static String GET_ACCOUNT = "GetAccount"; public final static String SILENCE = "silence"; public final static String NORMAL = "normal"; public final static String STOP_SETALARM = "StopSetAlarm"; /* * Display Text message for next meeting, no meeting and application stopped */ public final static String NEXT_MEETING_MSG = "Next meeting @ "; public final static String STOP_MSG = "Application is stopped."; public final static String NO_MEETING_MSG = "No meeting for next one hour. Will check later."; /* * String added to the SharedPreferences for stopping an application. */ public final static String ACTION_STOP = "action_stop"; public final static String STOP = "stop"; /* * Minutes after which the calendar will be checked again. */ public final static int DELAY = 59; /* * Message displayed when the phone turns silent or normal. */ public final static String SILENCE_MSG = "SilenceIt: Turning your phone to silent."; public final static String NORMAL_MSG = "SilenceIt: Turning your phone to normal."; /* * Extras for silenceItService. */ public final static String ALARM_MSG = "alarm_message"; }