Steps to create a MVVM pattern using DB of ShoppingItem list: Create class Entity ShoppingItem (Has every attirbutes) Create interface Dao for ShoppingItem(Has the functions like upsert, dele...
Error starting Mysql in windows where IIS is also installed
I got this error: 1:34:34 PM [Apache] Error: Apache shutdown unexpectedly. 1:34:34 PM [Apache] This may be due to a blocked port, missing dependencies, 1:34:34 PM [Apache] improper privilege...
Run PHP Laravel project and how to host in shared hosting
Following are the instructions: Run PHP php artisan serve Changes need to do after cloning: Setup .env file composer install in the root folder composer update in the root folder php ar...
Loading data to spinner with item click listner
So to load data to the spinner there are 2 ways. Static data loading First add the data to .xml file. Into string.xml or array.xml or anyname you want. I prefer to use array.xml. Inside it create...
Checking Internet Connectivity
The below code is for the Internet checking. Note: From Android M there is new way to check android permission. private fun hasInternetConnection(): Boolean { val connectivityManager = getAp...
Things to know for your interview of Kotlin
What are the things that are asked at Interview? Basically, In interview you are asked how much knowledge do you have in the field. And Do you know the things that are essential of that field. ...
TempData is always null
I was using TempData for the submission for the data and send mail. Then pass through the TempData to HTML whether the form submission and mail send was successful or not. To show the message I us...
Alert Dialog box
Alert Dialog box are very useful for the popup message that you want to show. Or to use for confirm popup or even for a small form. In near future I will also post XML layout design and some anim...
Simple Recyclerview
Simple RecyclerView There are mainly 4 steps: Add RecyclerView (View) in your Activity/Fragment XML Create the XML file for item of recyclerView will showup Create an RecyclerView Adapter ...
How to add Toolbar options
To create Toolbar menu: Create Menu in XML file in menu folder res/menu/your_menu_name.xml <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk...