Hello, I read your this post and it helped me to create a custom adapter extending a cursor adapter for my app.
But i have some questions and errors after creating the adapter and using it for the app.
How does the bindView method collect the cursor data coming from the main activity if we are not calling this method like CustomAdapter ca = new CustomAdapter(context, cursor, flags);
listview.setAdapter(ca);
before listview.set......y not call ca.bindView(3 arguments for it); ??
After running the app i have one error of nullpointerexception when in bindView method i am trying to set the text for a textview using the cursor object....Need your help for this.....Thanks....
Hello, I read your this post and it helped me to create a custom adapter extending a cursor adapter for my app.
But i have some questions and errors after creating the adapter and using it for the app.
How does the bindView method collect the cursor data coming from the main activity if we are not calling this method like CustomAdapter ca = new CustomAdapter(context, cursor, flags);
listview.setAdapter(ca);
before listview.set......y not call ca.bindView(3 arguments for it); ??
After running the app i have one error of nullpointerexception when in bindView method i am trying to set the text for a textview using the cursor object....Need your help for this.....Thanks....