Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 578 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 578 Bytes

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