android kotlin – Service example

android kotlin – Service example MainActivity.kt package com.cfsuman.kotlinexamples import android.support.v7.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic.main.activity_main.* import android.app.ActivityManager import android.content.Context import android.widget.Toast[…]

android kotlin – Bottom navigation bar example

android kotlin – Bottom navigation bar example MainActivity.kt package com.cfsuman.kotlinexamples import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.graphics.Color import kotlinx.android.synthetic.main.activity_main.* class MainActivity[…]

android kotlin – WebView example

android kotlin – WebView example MainActivity.kt package com.cfsuman.kotlinexamples import android.content.Context import android.graphics.Bitmap import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.webkit.WebChromeClient import android.webkit.WebSettings[…]

android kotlin – AlertDialog setItems example

android kotlin – AlertDialog setItems example MainActivity.kt package com.cfsuman.kotlinexamples import android.content.Context import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.support.v7.app.AlertDialog import android.widget.Toast import[…]