Ejemplo n.º 1
0
 public StringBuffer getCollegeInfo() {
   StringBuffer info = new StringBuffer();
   info.append("\n colleges: \n");
   List<College> colleges = SimpleDao.getCollegeDao(mContext).getAll();
   if (colleges != null) {
     for (int i = 0; i < colleges.size(); i++) {
       College c = colleges.get(i);
       info.append(c.getCollegeId()).append("   ").append(c.getCollegeName()).append("\n");
     }
   }
   return info;
 }
Ejemplo n.º 2
0
 public College getCollege(int i) {
   College cl = new College();
   cl.setCollegeId("" + i);
   cl.setCollegeName("College_name_" + i);
   return cl;
 }