Recent Posts
None | 7 sec ago
None | 46 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 2 min ago
None | 2 min ago
None | 2 min ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By mpardo on the 9th of Feb 2010 08:30:54 PM Download | Raw | Embed | Report
  1. List<Map<String, Object>> categories = new Query<Category>(this, Category.class)
  2.         .orderBy(Category.columns.name, Query.OrderDirection.ascending)
  3.         .loadMap();
  4.  
  5. ListAdapter adapter = new SimpleAdapter(
  6.                 this,
  7.                 categories,
  8.                 android.R.layout.simple_list_item_1,
  9.                 new String[] { Category.columns.name },
  10.                 new int[] { android.R.id.text1 });
  11.  
  12. setListAdapter(adapter);
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: