In this tutorial, we will learn about foreground service and how to create a foreground service in an android application. A foreground service is a service, which works exactly same as a normal service (background service) and the only difference is, it has a notification attached to it in the notification tray of the device. […]
Multiple Constructors In Kotlin
In some cases when we need to use a class with different objects as its constructor argument. In such case we have to create multiple constructors. In Kotlin there is a predefined constructor called primary constructor which can either be an empty or with arguments. Primary Constructor or Default Constructor This is normal way in […]
Android Kotlin How To Create And Schedule A Notification
In the this tutorial we will explain how to send a notification using Notification.Builder class. And how to schedule it after a certain interval. Here we show how to schedule the notification after 5 seconds. Scheduling of the notification is achieved by using AlarmManager. By registering a BroadcastReceiver called AlarmReceiver we can subscribe the broadcast […]
Android Kotlin Listen To Internet Connection Using BroadcastReceiver
One of the most common use in mobile application is to perform tasks through internet. There is no guarantee that user has always active internet connection when they operate on our application. So it is safe to know in advance that user has a active internet connection or not. Based on this we can show […]
Android Create Splash Screen In Kotlin
Here in this tutorial i am going to explain you about creating a splash screen in Kotlin language. A splash screen is the first launching activity of the applications which waits for certain seconds and go to the next page either to login page or home page of the application. Splash screen is common to […]