Hi !

 I had made an application which download a huge list from the internet and
display in a listview. The Listview class is supported by my own Class which
is extension of the BaseAdapter base class. In the display list adapter
getView method I use simple_list_item_multiple_choice.

When I would like to insert an progressdialog with a Thread, the System is
die with NullPointer Exception in the last row:
*public View getView(int position, View convertView, ViewGroup parent) {
        if(convertView == null)
        {
            convertView =
inflater.inflate(android.R.layout.simple_list_item_multiple_choice,
parent,false);
        }
        try {
            ViewHolder vh = new ViewHolder();
            vh.checkTextView = (CheckedTextView)
convertView.findViewById(android.R.id.text1);
            vh.checkTextView.setEnabled(true);
            *
BUT if I don't use the Thread all going to right, there will no NullPointer
Exception
Can anyone tell me why ? Any solution ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to