Reading SQL data from another Activity/Class kotlin
I followed a tutorial on writing/reading SQL data in Android Studio using Kotlin, everything works fine but now I need to view the SQL data in another Activity.
The data from SQL is loaded into a ListView in MainActivity, but I want it to also show in a ListView in SecondActivity.
val myListAdapter = MyListAdapter(this,empArrayId,empArrayName,empArrayEmail)
listView.adapter = myListAdapter
I can see that "MyListAdapter(this" is using the MainActivity context, is there a way of doing...