KtApp

PHOTO EMBED

Wed Mar 30 2022 05:06:07 GMT+0000 (UTC)

Saved by @thiennt8 #android #kotlin

class KtApp : Application() {

    init {
        instance = this
    }

    companion object{
        private var instance: Application? = null
        fun getInstance(): Application? {
            return instance
        }
    }

    override fun onCreate() {
        super.onCreate()

    }
}
content_copyCOPY