mpardo
By: a guest | Feb 9th, 2010 | Syntax:
Java | Size: 0.37 KB | Hits: 11 | Expires: Never
List<Map<String, Object>> categories = new Query<Category>(this, Category.class)
.orderBy(Category.columns.name, Query.OrderDirection.ascending)
.loadMap();
ListAdapter adapter = new SimpleAdapter(
this,
categories,
android.R.layout.simple_list_item_1,
new String[] { Category.
columns.
name },
new int[] { android.R.id.text1 });
setListAdapter(adapter);