1

Android - Custom ArrayAdapter Null Pointer Exception

view story
linux-howto

http://stackoverflow.com – in my project I have to set in a normal Activity multiple ListView (the number of these ListView depend of a size of an ArrayList). So I have to programmatically add dynamically ListView and Custom ArrayAdapter. I had th idea to make an AsyncTask to do these dirty stuffs : making an array of custom ArrayAdapter and to set dynamically a ListView for each Adapter in the array. But the main problem I have is when I just try to do MyAdapterArray.add(MyAdapter) ... I have a Null Pointer Exception : 03-15 15:24:21.738: E/AndroidRuntime(21672): FATAL EXCEPTION: main 03-15 15:24:21.738: E/Android (HowTos)