Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. SimpleAdapter sAdapter = null;
  2.  
  3. String[] keys = { Feeds.TITLES, Feeds.KEY };
  4. int[] ids = { android.R.id.text1, android.R.id.text2 };
  5.  
  6. if (sAdapter == null) {
  7. sAdapter = new SimpleAdapter(Main.this, fetchedData,
  8. android.R.layout.simple_list_item_2, keys, ids);
  9. setListAdapter(sAdapter);
  10. }
  11.  
  12. else
  13. sAdapter.notifyDataSetChanged();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement