I'm am a newbie with Android development and using the following example to do something similar: https://stackoverflow.com/a/11626706/5724649
But am getting the following error: "Attempt to invoke virtual method 'java.lang.Object java.util.ArrayList.get(int)' on a null object reference"
when I try to set one of the radio button. Also mSource
(which is an ArrayList) is null
within getView()
, so I see why I could get this error, but not sure as to how I should pass the arraylist
to getView()
. Please help.