How get list of apps icons and names in kotlin to recyclerview
so im new in kotlin im trying to get all installed apps on device to recycler view my problem is every thing from activity in recycler adapter return null even I pass context
this is my code :
class Games_listx : RecyclerView.Adapter() {
var appsx = Gamesff()
var listofapps = ArrayList()
var all_apps : MutableList? = null
var icons : Drawable? = null
class viewxlist(itemView: View) : RecyclerView.ViewHolder(itemView) {
val txt_game =...