This repository contains a simple Android application demonstrating different functionalities using Kotlin. The app consists of four activities: MainActivity
, ThreadActivity
, NotificationActivity
, and EncryptedPreferencesActivity
. Each activity has a button to perform a demo task.
-
MainActivity:
- Provides the main screen of the app.
- Includes a button for a demo task.
-
ThreadActivity:
- Demonstrates threading in Android using the
Thread
class. - Includes a button for a demo task involving thread usage.
- Demonstrates threading in Android using the
-
NotificationActivity:
- Showcases the usage of notifications in Android.
- Utilizes
WorkManager
andNotificationCompat
for notification creation. - Includes a button for triggering a notification.
-
EncryptedPreferencesActivity:
- Illustrates the usage of encrypted preferences in Android.
- Utilizes Android's
EncryptedSharedPreferences
. - Includes a button for a demo task involving encrypted preferences.
-
ForegroundServiceActivity:
- Demonstrates the usage of a Foreground Service in Android.
- Includes a button to start the Foreground Service.
-
IntentServiceActivity:
- Illustrates the usage of IntentService in Android.
- Includes a button for a demo task involving IntentService.
-
BoundServiceActivity:
- Demonstrates the usage of a Bound Service in Android.
- Includes a button to start the Bound Service and perform tasks.
To run the application, follow these steps:
-
Clone the repository:
git clone https://github.com/Barai-Vivek/GeneralCode.git