Skip to content Skip to sidebar Skip to footer

Attempt To Invoke Virtual Method 'void Android.widget.listview.cleartextfilter()' On A Null Object Reference

Now im making searchview in my listview and here is my code package intikom.streammobile.Customer; import android.app.ProgressDialog; import android.app.SearchManager; import and

Solution 1:

change this line:

finalListViewlv= (ListView)findViewById(R.id.lvCustomerList);

with this:

lv = (ListView)findViewById(R.id.lvCustomerList);

you already declaring your listview instance as global and again you are defining it as a local variable that is why your global instance in null always.

Post a Comment for "Attempt To Invoke Virtual Method 'void Android.widget.listview.cleartextfilter()' On A Null Object Reference"