How to update ListView from BroadcastReceiver?

view story

http://stackoverflow.com – It was perfectly fine to update just a TextView, but when I tried to update a ListView from onReceive, I kept getting NullPointerException from getView method (BaseAdapter). I have tried both handler.post & runOnUiThread but the problem remains the same. Did I miss something? public class MainActivity extends Activity { private SimpleBroadcastReceiver receiver; private List<User> users; private UserItemAdapter adapter; private ListView listview; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); (HowTos)