Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SimpleAdapter sAdapter = null;
- String[] keys = { Feeds.TITLES, Feeds.KEY };
- int[] ids = { android.R.id.text1, android.R.id.text2 };
- if (sAdapter == null) {
- sAdapter = new SimpleAdapter(Main.this, fetchedData,
- android.R.layout.simple_list_item_2, keys, ids);
- setListAdapter(sAdapter);
- }
- else
- sAdapter.notifyDataSetChanged();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement