Adam Wentz wrote:I need to display them in a ListView, but I can't get the array from the PackageManager to display to the ListView, so I was going to copy the data to an intermediary ArrayList, which is what listApps is for.
I was able to find a few examples of this sort of thing looking for "PackageManager to display to the ListView" in Google which are listed below:
http://www.androprogrammer.com/2013/10/get-installed-application-in-list-view.htmlhttps://xjaphx.wordpress.com/2011/06/12/create-application-launcher-as-a-list/http://stacktips.com/tutorials/android/how-to-get-list-of-installed-apps-in-androidhttp://theopentutorials.com/tutorials/android/listview/how-to-get-list-of-installed-apps-in-android/
Maybe
you should be look into the
RecyclerView which has largely replaced ListView.
Don't get me wrong, ListView have they purposes and they are still 100% valid, but a RecyclerView can do everything a ListView can and more.
However the ListView cannot do everything that the RecyclerView can do (or not at easily).