Skip to content

Concept for this small project is to hide a view in Activity after Some Time.

Notifications You must be signed in to change notification settings

CammyKamal/TimerSample

Repository files navigation

TimerSample

Concept for this small project is to hide a view in Activity after Some Time. This repository contains a project which helps to set up a Alarm in Kotlin and Alarm event is received using BroadcastReceiver. SharePreferences is used in the project. Using Sharepreferences value of a boolean is checked after every 2 seconds in MainActivity in order to hide a view. This project code can be used in applications where we want to hide Some views after some intervals like Hours, Days etc.

Android Components

  1. Alarm Manager
  2. BroadCast Receivers
  3. Handler