Posts

Showing posts from April, 2020

RoomDBExample in Kotlin (Using MVVM Architecture)

Image
RoomDBExample                                          GITHUB REPOSITORY LINK Login and Registartion example ,by ROOMDB using ViewModel in Kotlin Saving Data Using the Room Persistence Library Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite. There are 3 major components in Room: 1.Database 2.Entity 3.Dao Architecture  Using View Model Screenshots  

Building Weather App using MVVM design pattern (Kotlin)

https://github.com/eduxcellence/WeatherApp_Kotlin MainActivity.kt Contains View show User Current Weather Report and next day Weather Report. class   MainActivity : AppCompatActivity () {     val TAG : String? = MainActivity :: class .java.simpleName     var access_key : String = BuildConfig .access_key /*"fc7ca27cdb74949f62f5b936e50db2c3"*/     var query : String = "Lucknow,Uttar Pradesh,IN"     var isUp = false     //  Check Internet Continuosly     var TYPE_WIFI = 1     var TYPE_MOBILE = 2     var TYPE_NOT_CONNECTED = 0     var snackbar : Snackbar? = null     val coordinatorLayout : CoordinatorLayout? = null     var internetC...