This app helps you focus by blocking distracting notifications and organizes your tasks and events with a calendar.
INSTRUCTIONS TO EXECUTE/USE THE APP:
-
Generate OAuth 2.0 Credentials:
a) Create/Sign-in into Google Cloud console and enable Google Calendar API.
b) Generate OAuth credentials of the Web Application type, not Android.
c) During the configuration of the OAuth consent screen, ensure to enable the required scopes auth/calendar.readonly & auth/calendar) and specify the project name exactly as it is stated in the Android manifest. (Ex: package="com.example.proj5")
d) Utilize the Web Client ID obtained from OAuth and add/replace it in the "web_client_id" field in the strings.xml file. -
Add/show events from the Google Calendar:
a) Enable all necessary permissions when the app is launched for the first time and sign into the corresponding Google account (following the prompt).
b) Navigate to the calendar page and click on "Recent Events" to display your recent events from Google Calendar.
c) On the page, to add an event, input the event summary/title along with the start date of the event (in the displayed format). -
To cancel/block the notifications from the distracting apps based on a timer:
a) Enter the timer duration (in hours) and start typing the names of the apps from which you want to block notifications; a menu option will pop up for selection. b) If a non-integer value is entered in the timer, a toast error message will be displayed.
c) Entering valid values will initiate the timer, blocking notifications from the selected apps until the timer expires.
d) The UI displays the remaining timer duration and the list of blocked apps.
All the libraries required are included in the android Project.