User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
I am passing an object from MainActivity to GradeListActivity. In GradeListActivity I have a Fragment (which contains a ListView). I am trying to populate this ListView but whenever my app runs, GradListActivity is blank.
I debugged my program to make sure the object is being passed to the GradeListActivity and ListViewfragment (the fragment class), and it is indeed being passed in. I think i might be not populating the list in the correct place, but any help or guidance will be much appreciated.
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
I am passing an object from
MainActivitytoGradeListActivity. InGradeListActivityI have aFragment(which contains aListView). I am trying to populate thisListViewbut whenever my app runs,GradListActivityis blank.I debugged my program to make sure the object is being passed to the
GradeListActivityandListViewfragment(the fragment class), and it is indeed being passed in. I think i might be not populating the list in the correct place, but any help or guidance will be much appreciated.My MainActivity.java: