i am creating a listview having the data from the sqlite database. I ran the program thrice, so there are now 3 records in my database. on running the program i see 3 list rows but the text is not displayed.
here is my Category Activity class
`public class CategoryActivity extends ListActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    CategorySQLHelper categorysql = new CategorySQLHelper(this);
    Log.d("insert:", "inserting into database");
    categorysql.addCategory(new Category("Science"));
    //get all category
    Log.d("reading", "reading all category");
    List<Category>category=categorysql.getAllCategory();
    for(Category categories: category){
        String categoryname=categories.getCategory();
        Log.d("categories", categoryname);
    }
    ArrayAdapter<Category> adapter = new ArrayAdapter<Category>(getApplicationContext(), android.R.layout.simple_list_item_1,category);
    setListAdapter(adapter);
}`
 
     
    